我已經安裝了VS代碼和PHP調試器。visual studio code PHP調試不起作用
我正在使用xampp。
我試着運行代碼(2)方式(偵聽和啓動)。
聽只是坐在那裏,而啓動顯示產卵PHP ENOENT在調試控制檯。
這是我的launch.json。
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
我在做什麼錯?
您是否在php.ini中啓用遠程調試? –
你的問題是什麼?對我來說似乎還不清楚。 – Jer
[了XDebug] 的zend_extension = 「php_xdebug-2.5.3-5.5-VC11-nts.dll」 ; xdebug.profiler_append = 0 ; xdebug.profiler_enable = 1 ; xdebug.profiler_enable_trigger = 0 ; xdebug.profiler_output_dir =「 C:\ XAMPP \ TMP」 ; xdebug.profiler_output_name = 「cachegrind.out%叔%S」 xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_handler = 「dbgp」 xdebug.remote_host =本地主機 xdebug.remote_port = 9000 xdebug.trace_output_dir =「C:\ xampp \ tmp」 – GaryK4