Replies: 1 comment 1 reply
-
Your debugger VSCode or PHPStorm can only have one debug session listening on port 9003 at a time. This is more of a limitation of how Xdebug and the debuggers work. If the IDEs could share and reuse the debug process across multiple windows, that would likely allow for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm switching from Laravel Sail to Laravel Herd and it's been great. However, one area that I've struggled with is debugging my projects using xdebug. My issue is that I have multiple projects and can't debug them simultaneously.
For example I have a primary application and a secondary smaller application which is essentially just api endpoints. I use vscode and I want to be able to have my debugger listening for both projects. When I was using Laravel Sail this was possible due to each project having their own containerized instance of php and I could just listen to different ports. However, in Laravel Herd, since it is using the same php under the hood, I can only send on one port for all projects using that version of php.
My hacky workaround for now is that one project uses php 8.3 and one project uses php 8.2 and I can get the functionality I want. This isn't ideal for obvious reasons, namely that both projects should be running php 8.2 right now. It would be nice if Herd could do multiple instances of the same php version.
Does anyone have any thoughts or direction on how I could deal with this issue?
Beta Was this translation helpful? Give feedback.
All reactions