Skip to content
Advertisement

I need to debug PHP. What is my best choice?

I’m working on a web site under a Linux environment (Debian). I’m not an expert at Linux but I can handle it, and the website is made using PHP, MySQL, HTML, etc.

The thing is, I’m using PHP for the server side. Right now, for testing, I installed Apache on my PC so I can test everything. But, it would be great if I could debug the PHP code. So far, I didn’t need it, but now the code is getting larger, it’s a must.

So far, I’m using vim and everything is fine, but, how can I debug PHP in my case? What tools should I install? Are they free?

Basically, I need to know what would be the best choice in my situation.

Advertisement

Answer

XDebug provides step-by-step debugging, and can be used with eclipse PDT, netbeans and even vim. You really should give it a try. There also is Zend Debugger.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement