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
Related Q & A:
- How to debug a core file without debug symbols?Best solution by Stack Overflow
- How to debug an HTML page on mobile?Best solution by msdn.microsoft.com
- How to debug HTTP request?Best solution by Server Fault
- How to debug chrome manifest.json?Best solution by Super User
- How to debug subsequent request in Phpstorm?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.