How can I debug my php code?

Debugging PHP code in Cobalt RAQ4

  • Cobalt RAQ4 comes with Apache/PHP4.1.2 pre-packaged. How do we debug PHP code in this system? The PHP is compiled with --dable-debug flag. My situation is that, I have some PHP scripts that runs just fine, but some others just simply gives Segmentation Violation when run either from web-browser or from command line. How do I go about debuggint this problem? -Srinivas

  • Answer:

    Hi srinivas, According to the php.net site, PHP 3 includes support for a network-based debugger. PHP 4 does not have an internal debugging facility. (Source :: http://www.php.net/manual/en/debugger.php) However, you need not despair. There are external debuggers available. I've listed a few - DBG (Free) http://dd.cron.ru/dbg/ The DBG Php Debugger is a comprehensive software tool that helps you debugging your php scripts. It may work with your production or development WEB PHPEd (Free) http://www.soysal.com/PHPEd/ PHPEd is a php development environment for Win32, both to write and debug your scripts Zend Studio ($195 Basic, $249 PLUS) http://www.zend.com/store/products/zend-studio.php A complete environment for developing, debugging and deploying PHP applications in one integrated package Komodo ($295 for a user licesne, $29.50 for non-commercial license) http://www.activestate.com/Products/Komodo/ Komodo is a high-productivity, integrated development environment (IDE) for open source technologies and XSLT programming, available for Linux and Windows. It is optimized for programming languages including Perl, PHP, Python, and Tcl, and also features cutting-edge XSLT editing and debugging capabilities. I hope this answers your question. Have a good day :-) Cheers, aditya2k Search Terms cobalt php debugging php debugger how+ debug php scripts

bsrinivas-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.