How to do remote debug in PHPstorm with xdebug?

How to debug php?

  • Basically I am asking how to run the site and set breakpoints in the code where I can analyze what its doing (something like in C# ASP IDE).. I am using mostly PhpStorm 3 at the moment. First time with php and apache. Nothing setup other than mysqli

  • Answer:

    `xdebug` is a great tool for PHP development. It allows for code coverage analysis (when used with PHPunit, for example), improved stack traces, profiling, and remote debugging. PhpStorm provides functionality to connect to the debugger and integrate the debugging flow into the IDE itself. You can connect to the debugger within your local stack, or even within a virtualized dev environment. Check out the debugging documentation here: http://xdebug.org/docs/remote

Ben Weller at Quora 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.