Debugging custom code
Posted: Mon Jan 21, 2013 6:22 pm
I normally use Netbeans or Phpstorm for php debugging.
Netbeans does a great job of remote xdebugging and can do all the usual stepping/watching etc .
Which is fine for most things, but it doesn't seem to want to work for stepping into eval code.
Which is a shame as it would be brilliant for debugging activity procedures.
Some folks reckon you can xdebug_break() in the procedure code and that works but I can't get it to work sadly.
It does step the code as I get the output I expect per 'step' using F7/F8, but I can't actually see the eval code or vars as I'm stepping through.
I don't really want to return to var_dump having experienced the luxury of stepping through server side code, but wondered what you guys all did for this sort of thing?
I suppose I could comment the eval line in runprocedure and dump the hash processed code into it just for the debugging work.
But does anyone known of anything decent that lets you step into and play with eval code via a remote debugger.
It would save me a load of time as I need to write and carefully test a whole series of activity procedures.
Thanks as ever !
Martin
Netbeans does a great job of remote xdebugging and can do all the usual stepping/watching etc .
Which is fine for most things, but it doesn't seem to want to work for stepping into eval code.
Which is a shame as it would be brilliant for debugging activity procedures.
Some folks reckon you can xdebug_break() in the procedure code and that works but I can't get it to work sadly.
It does step the code as I get the output I expect per 'step' using F7/F8, but I can't actually see the eval code or vars as I'm stepping through.
I don't really want to return to var_dump having experienced the luxury of stepping through server side code, but wondered what you guys all did for this sort of thing?
I suppose I could comment the eval line in runprocedure and dump the hash processed code into it just for the debugging work.
But does anyone known of anything decent that lets you step into and play with eval code via a remote debugger.
It would save me a load of time as I need to write and carefully test a whole series of activity procedures.
Thanks as ever !
Martin