My stack is
nginx + php php-fpm + xDebug + PHPStorm
I have put at the very beginning of my index.php
echo "foobar";
exit;
and placed a breakpoint on the very first line.
If I run the script from PHPStorm everything is as expected: execution halts on the first line.
If I run the script by visiting my website with Chrome I just see foobar on the browser (while what I expect is the site just displaying nothing, and PHPStorm halted on the first line, the one with the breakpoint.)
What would I have tried/done so far:
configured php.ini
zend_extension="/absolute/path/to/xdebug.so"
xdebug.mode = debug
xdebug.start_with_request = trigger
xdebug.discover_client_host = 1
xdebug.client_port = 9003
On PHPStorm:
Settings > PHP > Debug port: 9003 - Can accept external connections: YES
Settings > PHP > Servers:
Servers list: www.example.com
Server settings for www.example.com
Name: www.example.com
Host: /absolute/path/to/www/www.example.com/html
(inside html is index.php that is the first script executed)
Port: 443
Debugger: Xdebug
Project files: (a single entry)
/absolute/path/to/www/www.example.com/html
Chrome with xDebug extension have the debugger activate when I load the page (green bug icon)
EDIT
Maybe this detail may be relevant to solve the solution.
When I set a breakpoint in PHPStorm the line is highlighted but no red dot appears on the left. See image...



