3 ms·
printf = breakpoint expression evaluation (but without the flexibility) You're using a primitive debugger, you just don't know it.
by barrkel 11y ago
printf = breakpoint expression evaluation (but without the flexibility)
You're using a primitive debugger, you just don't know it.
- noir_lord 11y agoIt does have the advantage of both immediacy and continuation. You can dump statements through a function and see it's progression when run without having to interact with it. Throw in something like FirePHP (which allows dumping pretty much anything out as a viewable/collapsible trace, other languages have similiar) and the use case for a lot of using a full blown debugger is removed (it's still incredibly powerful when needed). So I use both.
- girvo 11y agoCodebug + Xdebug, setting a breakpoint and getting a full REPL at that execution point is far more useful to me when I'm in PHP land :)