Skip to content

XDEBUG config is not working for vscode. #54

Answered by jawys
rehanawan asked this question in General
Discussion options

You must be logged in to vote

Hi @rehanawan,

we have similar issues trying to get xdebug working with vscode running the image flavored with php 8.0 through the nitro tool.

What I found is that xdebug 3.0 uses port 9003, which is also visible in some nitro config: https://github.com/craftcms/nitro/blob/main/pkg/config/config.go#L791

You can double check that when you connect to the container:

/app $ php -i | grep xdebug.client_port
xdebug.client_port => 9003 => 9003

Could you try changing this and post your findings here?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rehanawan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants