Hello,
I want to debug a php script via debug console on a remote server via a proxy.
I have set it up like this:
{
"name": "Debugging remote",
"type": "php",
"request": "launch",
"pathMappings": {
"/var/www/workspace/": "${workspaceFolder}/",
},
"hostname": "192.168.2.20",
"port": 9000,
"dbgpProxy":
{
"enable": true,
"host": "192.168.2.20",
"port": 9002
},
}
When i start the debugging i get this result in the console:
Listening to Xdebug on port 9000 ...
Registering with the DBGp proxy on "192.168.2.20:9002" with key "Username" ...
Whatever i do, it won't "debug" or stop in the added breakpoints.
I also read it won't debug automatically and i need to run the script via ssh, but also this doesn't work.
I tried these options:
php /var/www/workspace/script.php
XDEBUG_CONFIG="profiler_enable=1" php /var/www/workspace/script.php
I know the proxy or the server is setup correctly because debugging via the browser does work
Any suggestions?