[Bug]: xdebug hostname not passed correctly trough herd #275
Replies: 6 comments
-
Operating system version macOs Ventura 13.5 System architecture ARM64 (M1, M2, etc) Herd Version 1.2.0 (Build: 14) PHP Version I am using Heroku 1.2.0 and PHPStorm, and debugging the website fails. However, 'php public/index.php' can debug successfully. |
Beta Was this translation helpful? Give feedback.
-
@wesleylether Did you use Laravel Valet before switching to Herd? Do you know if there's any special requirement regarding the configuration of xdebug to make this work? |
Beta Was this translation helpful? Give feedback.
-
@mpociot I did indeed use Laravel Valet before. I don't know if there are any special requirements needed. Before on Valet when I listened on PHPStorm I did see the hostname correctly, and path mappings were mostly automatic. But when I enable break on the first line, it will eventually reach the breakpoint. It would be better if the xdebug works like Valet before. p.s. the configuration for xdebug on the herd page isn't fully complete because for eacht PHP version you will need a diffrent xdebug.so file :) |
Beta Was this translation helpful? Give feedback.
-
Operating system version macOs Sonoma 14.0 System architecture ARM64 (M1, M2, etc) Herd Version 1.2.2 (Build: 16) PHP Version Cannot map the files correctly. |
Beta Was this translation helpful? Give feedback.
-
Seems that with the new update v1.4.0 the mapping and configuration got fixed 🙌 Though I still have a question.
Do you know what these settings are in fact needed for? ![]() ![]() So my adjusted php.ini file just contains those lines for PHP 8.2 on Apple M1 Max 14.3 (Sonoma)
An additional question would be a little more technical: But again thanks a lot for putting in the effort to get this running! |
Beta Was this translation helpful? Give feedback.
-
@mpociot I have deleted all valet, herd configuration. Installed this new version of Herd and tried to configure xdebug again. But I do want to share some images. After I configured PHPStorm to accept debug connections, I got this screen: As you can see, there is no server name! I would expect the .test server name. Also, on this screen, you would expect some values there. These values are present if you use the valet configuration without herd. So the hostnames that are configured through herd, there are some nginx settings that are not entirely correct I presume. Hopefully, this information will help you to solve this problem 😄 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Operating system version
macOs Ventura 13.5.1
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.2.0 (Build: 14)
PHP Version
all
Bug description
After the configuration of Xdebug through the page 'xdebug installation' xdebug is working (which is visible trough
php -v
).But when I listen with PHPStorm to Debug connections, It triggers the xdebug server pane in PHPStorm, but it does not provide a hostname. Also, I cannot correctly specify directory mappings. Because of this Xdebug won't work properly trough local websites of Herd.
Beta Was this translation helpful? Give feedback.
All reactions