Hello,
I am trying to debug in VS Code with PHP Tools on a remote linux server.
I have installed XDEBUG and added these settings in the bottom of my php.ini file:
xdebug.mode=debug
xdebug.client_host = 127.0.0.1
xdebug.client_port = 9000
xdebug.start_with_request=trigger
I then start the proxy via this command:
/usr/bin/python2.7 /opt/pydbgpproxy/pydbgpproxy-master/pydbgpproxy -d 127.0.0.1:9000 -i 192.168.2.20:9002
My development server (http://devserver01) is on IP 192.168.2.20.
In VS Code i installed the PHP tools plugin and created a launch.json file.
In this file i have this configuration:
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"hostname": "192.168.2.20",
"port": 9000,
"runtimeArgs": [
"-S",
"appname.devserver01",
"-t",
"."
],
"dbgpProxy":
{
"enable": true,
"host": "192.168.2.20",
"port": 9002
}
},
]
}
I want to start a webbrowser and go to "http://appname.devserver01" and start debugging. I initially had this setup in Visual Studio IDE but i want to see if i am able to switch to VS Code.
What is wrong and how can i change this?
The output from the debug console is as below, but it doesn't open a browser with the url and if i go to the url manually it doesn't debug with breakpoints:
Listening to Xdebug on port 9000 ...
Registering with the DBGp proxy on "192.168.2.20:9002" with key "Username" ...