Configuring php-debug with xdebug 3.x
Opened this issue · 2 comments
I'm having trouble using php-debug with xdebug 3.x. I can use xdebug 3.0.4 to write trace files just fine (xdebug.mode=trace) but when I want to step debug with atom/php-debug I have problems.
All of the instructions in readme.md are for xdebug 2.x;
Setting up Xdebug
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1 # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
These directives don't work in xdebug 3.x. I am debugging locally (windows 10/wampserver 3.2.3) and with these settings:
xdebug.mode = trace,debug
xdebug.start_with_request = yes
xdebug.client_port=9000
xdebug.discover_client_host=0
xdebug.client_host=localhost
and using port 9000 in php-debug settings. php-debug stops at the appropriate breakpoint but asks me for pathmap settings. I don't think pathmapping is necessary when the code and debugger are on the same server. But if it is necessary, what should the settings be? (The code is at c:/wamp64/www)
Thank you for helping.
the xdebug.discover_client_host=0
should be xdebug.discover_client_host= false
according to here
Warning: Xdebug's default debugging port has changed from 9000 to 9003.
https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable