Webstorm does not debug .php files in Chrome

When I click "debug"

Webstorm debugging button

in Firefox. I get a results page in html that I can check:

Debugging PHP file in Firefox

But in Chrome, I just get the PHP source code: Debugging PHP file in Chrome

What is the problem? Has anyone come across?

+4
source share
1 answer

You access the file directly on disk. Try accessing it through your web server (in other words, open the page as HTML).

+4
source

Source: https://habr.com/ru/post/1446051/


All Articles