michal-kocarek / PhpOnWindows

Bridge to PHP installed in Bash on Ubuntu on Windows
MIT License
76 stars 15 forks source link

PHP Inbuilt Server doesn't hit breakpoints #10

Closed g105b closed 1 year ago

g105b commented 6 years ago

When using the inbuilt server option from PHP Storm, I can't hit breakpoints in my code.

image

This works if I switch PHPStorm to use the native Windows PHP version, but then I have all the weirdness of running PHP in Windows, which is why I found your great project.

ruslan-pelepets commented 6 years ago

Are you using Windows Subsystem for Linux - WSL? If yes you should use webserver in WSL apache, nginx etc. In that case configure debug in PHPStorm as for remote server as WSL acts as virtual machine (almost).

If you try to debug console or unit tests try my fork https://github.com/ruslan-pelepets/PhpOnWindows as it has improvements.

g105b commented 6 years ago

Yes I am using WSL, but I can use the inbuilt server when using PHP.exe or running PHP in a virtual machine, so I expected the same behaviour through this functionality.

g105b commented 1 year ago

A lot has changed since opening this issue - closing now to tidy up.