PhpStorm comes with several ways of debugging PHP Web Applications. We can use zero-configuration debugging with Xdebug and with Zend Debugger. But next to that, there are also Run/Debug configurations we can use to debug our web applications with PhpStorm. In this tutorial, we'll see how we can create a Run/Debug configuration, the various types of Run/Debug configurations and when to use them.
|Table of Contents|
Be sure to check the other tutorials about debugging PHP code with PhpStorm to learn more.
The PHP Remote Debug configuration will make the IDE await a debugger connection with specific IDE key or session id.
This run configuration is universal and can be used whenever other approaches are not applicable. However, we strongly recommend using the Start Listening for PHP Debug Connections mode instead.
For this configuration, we have to specify:
When launching the debugger, PhpStorm appends a query string to the URL that is requested (for example