vscode开发中xdebug无效的问题

安装xdebug方法参考:vscode + xdebug3 使用简版教程-workerman社区

配置参数:

[Xdebug]
zend_extension=D:/phpstudy_pro/Extensions/php/php8.2.9nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php8.2.9nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php8.2.9nts.xdebug.profiler
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.remote_connect_back=1

安装完后启动xdebug,webman依然看不到debug信息,有可能是没有重启vscode,重启vscode试一下。

Was this helpful?

0 / 0

发表回复 0