-
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.
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.
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?