Jump to content

Are there PHP debuggers available with step-through functionality?


smithaa02

Recommended Posts

I frequently work with third party software that is quite complicated with code spread out over many pages, functions, and classes, and it would be nice when I'm trying to fix a bug or tweak some functionality if there were some PHP debugging trick available that would allow me to follow each line of code as it is executed while I surf that website.

 

I know in linux, you can find the PID of your thread and fill that into strace, but the results are often too technical. Is there an equivalent trace/step trick for PHP?

Would such a thing even be possible? PHP is processed on the server, so in order to do a step through debugging, it would have to send back information to the browser on each step.

 

I suppose you could maybe do it if you were working locally.

Maybe what would be nice would be to the option to have a special PHP debugger take over execution of PHP scripts for a set period of time and this would write all the PHP lines executed to a log file.  I could then search for my IP, find my last executed program, and then I could figure out where the bug occured.

 

I found this but I'm not sure it is what I'm looking for: http://www.dcc.uchile.cl/~xnoguer/peardoc2/pecl.apd.html Has anybody ever heard of this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.