Skip to content

Configuring php-debug with xdebug 3.x #334

@oneclicktennis

Description

@oneclicktennis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions