M BUZZ CRAZE NEWS
// general

Can I debug PHP scripts running in Apache on Ubuntu?

By John Parsons

Coming from the Microsoft world, where Visual Studio, Windows, and IIS seemingly play nice together, I can attach the Visual Studio debugger to the IIS process and debug code in play. When a web service call is made to the IIS server, I can evaluate the parameters, and watch the code execute.

Can I do the same with PHP scripts running in Apache on Ubuntu? I have PHP5 on Apache2 and have installed xdebug. PHPINFO() seems to think this is all setup and ready, only I have no idea how to attach this debugger to the httpd process and/or which editor/IDE to use to view the debugging.

1

1 Answer

You can use a browser plugin for Firefox called firePHP to debug php along with editing it "in play". I am not entirely sure if Chrome has a similar plugin, but I'm going to lean towards yes.

You could also install Netbeans and use that as your IDE.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy