Zend Studio

Remote Debugging with the Zend Debugger and PHPUnit

I’m trying to do some remote debugging with PHPUnit on a remote system.  I was following the rules I had written about in a previous article but for some reason I could not get path mapping to work.  So I figured I’d ping the Studio lead developer because as soon as I did that I’d getContinue Reading “Remote Debugging with the Zend Debugger and PHPUnit”

Zend Framework

Debugging a mobile app

I’m working on an example of mobile detection with the new Zend Framework 1.11 beta that was just released when I came upon an interesting problem. That problem is; how do I debug requests coming in from the mobile phone? The answer is actually relatively easy. I’m doing this using a Zend Framework application, but the concepts that you’ll see here can be used quite easily across any type of framework.


Debug Tunneling

Debugging is one of the things that every single PHP developer in the world needs to know how to do. Unless you are simply learning the language, learning how to debug will save you countless hours and save you loads of money in anti-anxiety medications. var_dump() or print_r() is not debugging. At least, it’s not debugging in a way that is very useful, or safe.

There are two primary debuggers in the PHP world. XDebug and the Zend Debugger. I am not an expert in XDebug (though I really need to learn it better) so I will leave those discussions to someone else.