-
I just added PHP 8.1 to laragon, so now I need to enable xdebug for it. How is that done? (The old discussion item went away) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
I wrote this blog How to Set up VS Code to use PHP with Xdebug 3 on Windows, which should help. I have seen problems with automatically enabling xDebug in Laragon. If you have problems see the fix: If you use Nginx there is a conflict with port 9003, the workaround is to use the old post 9000. See: After it's been enabled once and the port doesn't conflict it works well and can be toggled on and off as required 🎉 |
Beta Was this translation helpful? Give feedback.
-
I also have a snippet on xDebug on my blog: How to update the PHP version in Laragon |
Beta Was this translation helpful? Give feedback.
-
Awesome thanks @Pen-y-Fan |
Beta Was this translation helpful? Give feedback.
-
There is also a nice wizard on the xdebug website that will help you install it flawlessly by just analyzing your phpinfo(); output ! |
Beta Was this translation helpful? Give feedback.
-
tried to set up xdebug through the wizard (link below), but the xdebug dll file it told me to download has been blocked, saying it is a potentially dangerous file. Is this file even safe? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have read the wiki How to add xdebug to Laragon
But when you read multiple discussions, it seems that this is not the good way to add xdebug (see here) Is it the wiki of Laragon that is not up to date? Is it really necessary to add [xdebug] section to the php.ini file in order to make it works? |
Beta Was this translation helpful? Give feedback.
I wrote this blog How to Set up VS Code to use PHP with Xdebug 3 on Windows, which should help.
I have seen problems with automatically enabling xDebug in Laragon. If you have problems see the fix:
If you use Nginx there is a conflict with port 9003, the workaround is to use the old post 9000. See:
After it's been enabled once and the port doesn't conflict it works well and can be toggled on and off as required 🎉