Jump to content

Are there PHP debuggers available with step-through functionality?


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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.