Xdebug - connected, but can´t step through code


I have problem with xdebug in PHPstorm.
My environment is: Windows 10, XAMPP, PHPStorm 2016.2.1

I am trying to debug a PHP application, which consists of one simple script.


If the "Break at first line in PHP scripts" option (under PHP > Debug menu) is checked, it will - after webpage reload - stop at first line of the script (line 4 in the screenshot A). But when I use some navigation commands (Step out, in, over... whatever) it does nothing. No code stepping is done. Only the navigation commands buttons are greyed out (screenshot B) and I can´t do nothing more then stop the web page from loading (it is still in "loading" state, until I press the red STOP button at the left bar).

If the "Break at first line in PHP scripts" option is unchecked, it immediately runs to the state in the screenshot B (script doesn´t suspend at all). So the breakpoints are ignored.



I found some "solutions" pointing to Path mappings. But I do not use any remote server. Both Project root and Document root are set to C:\xampp\htdocs\PHP-7\ on the same machine (so I´m using localhost only).


The problem persists even if the checkbox "Use path mapping" is unchecked.


Here are some more screenshot of other configurations:

Run configuration


Settings > PHP > Debug

PHPStorm Project root = webserver Document root



I do not use any firewall nor antivirus.

Comment actions Permalink

Hi there,

You are using Xdebug 2.7.2 with PhpStorm 2016.2.

There was a change in Xdebug 2.7.0 -- protocol used got some updates and you need PhpStorm 2018.3 or newer if you want to keep using that Xdebug version (see https://stackoverflow.com/a/55161822/783119 or https://stackoverflow.com/a/55159290/783119 or https://stackoverflow.com/a/55160198/783119)

Solution: either upgrade PhpStorm to 2018.3 or newer (latest stable is 2019.1, 2019.2 will be released in 1 month or so) .. or downgrade Xdebug to 2.6.x (which supports PHP 7.2 max -- you have PHP 7.3 there).

Comment actions Permalink

Oh that´s great, another reason to purchasing new version of PhpStorm :)

I will do that, thanks for your reply.


Please sign in to leave a comment.