php8.0 vscode 调试模式无法命中断点的问题

貌似是xdebug修改了配置,直接复制即可

zend_extension = xdebug
[XDebug]
xdebug.mode=debug
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.start_with_request = yes(就是它)
xdebug.client_host=localhost
xdebug.client_port =9003

debug以后效率明显变慢的问题

xdebug.connect_timeout_ms:默认是 200 毫秒,开启 xdebug 扩展后,每次 php 处理请求时前都会等到 IDE 连接,就是不调试也等 200 毫秒然后超时。可以减少到 10。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注