smithaa02 Posted February 28, 2008 Share Posted February 28, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/ Share on other sites More sharing options...
revraz Posted February 28, 2008 Share Posted February 28, 2008 May find one here, but I doubt it would be cheap http://www.phpfreaks.com/forums/index.php/topic,119433.0.html Would be nice to have one like VB's. Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479225 Share on other sites More sharing options...
haku Posted February 28, 2008 Share Posted February 28, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479235 Share on other sites More sharing options...
uniflare Posted February 28, 2008 Share Posted February 28, 2008 the debugger would have to act as the server i believe, not sure if this is even possible in php to have a debugger run through like the VB Debugger. Maybe a general syntax debugger? Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479239 Share on other sites More sharing options...
revraz Posted February 28, 2008 Share Posted February 28, 2008 If you have the php engine installed locally it would be possible. Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479247 Share on other sites More sharing options...
uniflare Posted February 28, 2008 Share Posted February 28, 2008 im very interested in this, if you find one pm me or something Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479249 Share on other sites More sharing options...
haku Posted February 28, 2008 Share Posted February 28, 2008 Now that I think of it, there is a debugger in the zend development environment. That's actually the editor I do all my programming in, I just never used the debugger! Maybe you can use that. Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479250 Share on other sites More sharing options...
smithaa02 Posted February 28, 2008 Author Share Posted February 28, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479357 Share on other sites More sharing options...
Barand Posted February 28, 2008 Share Posted February 28, 2008 I use Nusphere PHPEd - step through debugger, (conditional) breakpoints, watches, profiler etc Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479487 Share on other sites More sharing options...
uniflare Posted February 29, 2008 Share Posted February 29, 2008 n1 barand, looks like the one Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-479921 Share on other sites More sharing options...
smithaa02 Posted February 29, 2008 Author Share Posted February 29, 2008 I found a PHP debugger you can install on the server called Xdebug http://xdebug.org/. Anybody have any experience with this? Quote Link to comment https://forums.phpfreaks.com/topic/93524-are-there-php-debuggers-available-with-step-through-functionality/#findComment-480008 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.