Madhura
Madhura

Reputation: 167

What are the settings in PHP.ini file to start xdebugger?

I have below settings in PHP.ini file for XDebug.

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts ="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"

Upvotes: 1

Views: 2433

Answers (1)

Fabian Horlacher
Fabian Horlacher

Reputation: 1929

You need to send a cookie called XDEBUG_PROFILE to the server. You can use browser plugins to do that for you like easy Xdebug (Firefox) or Xdebug helper (Chrome).

If you want to keep the debugger active, you can add this line to your php.ini:

xdebug.remote_autostart = 1

https://xdebug.org/docs/remote

Upvotes: 1

Related Questions