Wesley
Wesley

Reputation: 23

Can't figure out to let Xdebug work in combination with PhpStorm and XAMPP

I followed this steps, recommended by Xdebug based on phpinfo():

I also unchecked the 'ignore external connections through unregistered server configurations in PhpStorm. In PhpStorm port 9000 is configured. This port isn't used by an other application.

In the php.ini file I listed the following configuration:

[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0rc4-5.6-vc11.dll
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "C:\xampp\tmp"

The DLL file exists.

I also enabled the debug functionality in chrome via the xdebug addon.

Which step do I miss?

Upvotes: 2

Views: 306

Answers (1)

Ray
Ray

Reputation: 41508

You're probably going to want to set xdebug.remote_enable = 1 or the remote debugging will be disabled.

Also, set the remote debug port phpStorm is set to use: xdebug.remote_port=9000 (I'm assuming port 9000, it's the default, but check phpstorm)

To debug every request (if you don't have the chrome plugin for a browser for example) use xdebug.remote_autostart = on

Upvotes: 1

Related Questions