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

貌似是(shì)xdebug修改了(le)配置,直接複制(zhì)即可(kě)

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以後效率明(míng)顯變慢(màn)的(de)問(wèn)題

xdebug.connect_timeout_ms:默認是(shì) 200 毫秒(↓&¶εmiǎo),開(kāi)啓 xdebug 擴展後,每次 php 處理(lΩ♠↑•ǐ)請(qǐng)求時(shí)前都(dōu)會(hu•÷✔φì)等到(dào) IDE 連接,就(jiù)是(shì)不(bù)調試也(yě)等 뙀200 毫秒(miǎo)然後超時(shí)。可(kě)以減少(shǎo)≤β到(dào) 10。

發表回複

您的(de)郵箱地(dì)址不(bù)會(huì)被公開(kāi)。 ★¶λ 必填項已用(yòng) * 标注