I have followed these instructions as closely as I can:
I'm attempting to debug a website running PHP in Chrome on the same Mac that is running MAMP and PhpStorm.
Relevant portion of php.ini:
I have a breakpoint set on the first executable line of a PHP script to be called from the website. 'Run -> Break at first line of PHP scripts' is off.
The Xdebug Helper extensions for Chrome is set up like this:
Xdebug Helper is set to `debug` for the target page.
Then I turn on PhpStorm's Xdebug listen:
In Chrome I refresh the page which generates this error in PhpStorm:
Debug session was finished without being paused
It may be caused by path mappings misconfiguration or not synchronized local and remote projects.
To figure out the problem check path mappings configuration for 'www.br.dev' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu).
If I then turn off listening, enable 'Break at first line in PHP scripts', turn listening back on, and refresh the page in Chrome, I get the page waiting in Chrome, but nothing on PhpStorm. No errors, no changes, and no way to step through code.
What have I missed in my setup?
- PhpStorm 2016.3.2
- MAMP PRO 4.1
- Xdebug 2.5.0
- macOS 10.12.2
- PHP 7.1