所以由于某種原因,本地環境除錯器停止為我作業。如果我禁用了除錯器,腳本運行良好。但是一旦我啟用除錯器并命中斷點,應用程式就會收到關閉信號。這是單次運行的 xdebug 日志:
這是 xdebug.log 的最后幾行
[22776] [Step Debug] <- step_over -i 282
[22776] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="282" status="stopping" reason="ok"></response>
[22776] [Step Debug] <- run -i 283
[22776] Log closed at 2022-03-22 11:46:15.011006
這是 php.ini xdebug 配置
[xdebug]
zend_extension="c:/wamp64new/bin/php/php7.3.33/zend_ext/php_xdebug-3.1.1-7.3-vc15-x86_64.dll"
;xdebug.mode allowed are : off develop coverage debug gcstats profile trace
xdebug.mode = debug
xdebug.remote_enable = 1
xdebug.remote_host = "localhost"
xdebug.output_dir ="c:/wamp64new/tmp"
xdebug.show_local_vars=0
xdebug.log ="c:/wamp64new/logs/xdebug.log"
xdebug.log_level =7
幾個小時以來,我一直在為此苦苦掙扎,甚至找不到可以遠程解決問題的方法。
uj5u.com熱心網友回復:
Xdebug 3.1.1 有一些在 Xdebug 3.1.2和3.1.3中修復的錯誤。在這種情況下。我建議將 Xdebug 升級到最新版本,這是在我寫這個答案的時候:Xdebug 3.1.3。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/446690.html
