-
Can some one please share the launch.json for xdebug in VSCODE? using: image: craftcms/nginx:7.4-dev docker-compose
launch.json:
|
Beta Was this translation helpful? Give feedback.
Answered by
jawys
Feb 25, 2022
Replies: 1 comment 1 reply
-
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? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rehanawan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Could you try changing this and post your findings here?