Skip to content

Setting up debugging with Xdebug and vscode-php-debug #7574

Answered by mattriverm
paulvandermeijs asked this question in Q&A
Discussion options

You must be logged in to vote

Try this. Make sure xdebug is connecting on port 9003.

[language.debugger]
name = "vscode-php-debug"
transport = "stdio"
command = "node"
args = ["/Users/me/.vscode/extensions/xdebug.php-debug-1.33.0/out/phpDebug.js"]

[[language.debugger.templates]]
name = "Listen for Xdebug"
request = "launch"
completion = ["ignored"]
args = {serverSourceRoot="/path/in/container",localSourceRoot="/path/on/host"}

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@paulvandermeijs
Comment options

Comment options

You must be logged in to vote
1 reply
@paulvandermeijs
Comment options

Answer selected by paulvandermeijs
Comment options

You must be logged in to vote
8 replies
@chartjes
Comment options

@eric-hansen
Comment options

@chartjes
Comment options

@chartjes
Comment options

@eric-hansen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mattriverm
Comment options

@acidindustries
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants