Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Step through page execution with XDebug with Eclipse?

Tags:

php

debugging

I am trying to see what happens during the execution of a page. What should I do to monitor the variables after each step (function call or line execution) of the page running? How can I control when to take the next step in the execution of the page?

Thanks, Alex

like image 660
Genadinik Avatar asked Jan 28 '26 16:01

Genadinik


1 Answers

I'm not familiar with debugging in Eclipse as I use Netbeans, but I'd assume that the process is rather similar. There's a good article here about how to set up Eclipse to use xdebug and an overall introduction to debugging your applications from Eclipse.

One thing to note (at least in the FreeBSD version that I'm running) - adding watches is apparently experimental and might require restarts here and there.

like image 185
Demian Brecht Avatar answered Jan 30 '26 04:01

Demian Brecht



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!