我已经安装了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