-
-
Notifications
You must be signed in to change notification settings - Fork 35
blog: xdebug understanding and troubleshooting #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
🌐 Fork Preview for PR #520 https://pr-520.ddev-com-fork-previews.pages.dev This preview updates automatically when you push changes to your fork. |
162a9a3 to
bfbac53
Compare
bfbac53 to
da60bd3
Compare
da60bd3 to
40a9444
Compare
|
It's pretty tedious how much is in here. |
|
While reading through the blog I noticed the following line:
I'm not sure thats 100% true. When I check my settings, I don't appear to have this but debugging works for me. $ ddev -v
ddev version v1.25.0
$ /usr/bin/cat ~/.ddev/global_config.yaml| \grep --color=auto xdebug
xdebug_ide_location: ""
...Was debugging all week using VSCode: ** Update Playing around some more. So I use PHP extention which includes php debugging. |
|
Thanks so much @tyler36 ! Could you give me a screenshot of your project? The assumption here is use the WSL extension, which runs a proxy in the WSL distro. If you don't do that, then it will definitely use the alternate technique. I don't have WSL2 machine with me today... |
|
Did some more testing this morning on a portable version of VScode and Ubuntu 25.04.
Xdebugging
{
"name": "Listen for Xdebug",
"type": "php",
"hostname": "0.0.0.0",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
"preLaunchTask": "DDEV: Enable Xdebug",
"postDebugTask": "DDEV: Disable Xdebug"
},
{
"name": "Listen for Xdebug",
"type": "php",
// "hostname": "0.0.0.0",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
"preLaunchTask": "DDEV: Enable Xdebug",
"postDebugTask": "DDEV: Disable Xdebug"
},
|
|
Wow, awesome. I never knew exactly what the PHP extension was vs "PHP Debug", which is maintained by the Xdebug folks (or folk). In VS Code/PHP Debug the However, another extension may just do that because it's the thing to do, not requiring that. |
|
TODO:
|
The Issue
XDebug troubleshooting blog along with new v1.25 debugging feature
Rendered at https://pr-520.ddev-com-fork-previews.pages.dev/blog/xdebug-step-debugging-understanding-and-troubleshooting/