php8.0 vscode 調試模式無法命中斷點的(de)問題

貌似是(shì)xdebug修改了(le/liǎo)配置,直接複制即可

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(就(jiù)是(shì)它)
xdebug.client_host=localhost
xdebug.client_port =9003

debug以(yǐ)後效率明顯變慢的(de)問題

xdebug.connect_timeout_ms:默認是(shì) 200 毫秒,開啓 xdebug 擴展後,每次 php 處理請求時(shí)前都會等到(dào) IDE 連接,就(jiù)是(shì)不(bù)調試也(yě)等 200 毫秒然後超時(shí)。可以(yǐ)減少到(dào) 10。

發表回複

您的(de)郵箱地(dì / de)址不(bù)會被公開。 必填項已用 * 标注