PhpOnWindows icon indicating copy to clipboard operation
PhpOnWindows copied to clipboard

PHP Inbuilt Server doesn't hit breakpoints

Open g105b opened this issue 7 years ago • 2 comments

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.

g105b avatar Jan 12 '18 12:01 g105b

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.

ruslan-pelepets avatar Jan 14 '18 02:01 ruslan-pelepets

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 avatar Jan 14 '18 12:01 g105b

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

g105b avatar Jun 29 '23 11:06 g105b