Cannot debug index.php -> 404 Not Found

 

I just installed XAMPP and PHPStorm and can access localhost/index.php without PHPStorm(from outside the IDE).

However, when I create a new inplace project in PHPStorm  with main dir htdocs  I get the error 404 by right-click and run/debug on the same index.php.

 

 My php.ini contains following xdebug configuration:

[Xdebug]
zend_extension="C:\xampp\php\php_xdebug-2.5.5-7.1-vc14.dll"
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.idekey = "PHPSTORM"
xdebug.remote_host = "127.0.0.1"
xdeburg.trace_output_dir = "c:\xampp\tpmp"
xdebug.collect_params = 1

 

I would like to know where is my error  and why localhost/htdocs/index.php forwarding me to http://localhost:63342/dashboard/ and not to http://localhost:63342/htdocs/dashboard

 

Greetings

0
3 comments
Avatar
Permanently deleted user

Hello,

localhost:63342 is not XAMPP, it's PhpStorm's built-in web server.

In order to use XAMPP properly, you need to integrate web server with PhpStorm.

Please follow this part of guide: https://confluence.jetbrains.com/display/PhpStorm/Installing+and+Configuring+XAMPP+with+PhpStorm+IDE#InstallingandConfiguringXAMPPwithPhpStormIDE-IntegratingtheApacheserver

1
Avatar
Permanently deleted user

Hello, it works, many thanks!

 

0
Avatar
Permanently deleted user

For some reason I cannot debug particular files from htdocs folder(e.g. set a breakpoint in the index.php and rightclick an debug), but I only can debug the hole htdocs project. 

There must be some misunderstanding by me

0

Please sign in to leave a comment.