PHP.ini 文件中启动 xdebugger 的设置是什么?
What are the settings in PHP.ini file to start xdebugger?
我在 XDebug 的 PHP.ini 文件中有以下设置。
[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"
您需要向服务器发送一个名为 XDEBUG_PROFILE
的 cookie。您可以使用浏览器插件为您做到这一点 easy Xdebug (Firefox) or Xdebug helper (Chrome)。
如果您想让调试器保持活动状态,您可以将此行添加到您的 php.ini
:
xdebug.remote_autostart = 1
我在 XDebug 的 PHP.ini 文件中有以下设置。
[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"
您需要向服务器发送一个名为 XDEBUG_PROFILE
的 cookie。您可以使用浏览器插件为您做到这一点 easy Xdebug (Firefox) or Xdebug helper (Chrome)。
如果您想让调试器保持活动状态,您可以将此行添加到您的 php.ini
:
xdebug.remote_autostart = 1