Xdebug在Visual Studio Code中不起作用

时间:2018-12-26 11:38:02

标签: visual-studio-code xdebug

我无法使用Xdebug调试PHP代码。

我已经按照https://xdebug.org/wizard.php页上的说明进行操作,但是它对我来说不起作用!

php.ini:

[xdebug]
zend_extension = E:\wamp64\bin\php\php7.2.4\ext\php_xdebug-2.6.1-7.2-vc15-x86_64.dll
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_connect_back = 1
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir =E:\wamp64\tmp

launch.json:

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"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
    }
]
}

我已经安装了所有用于可视化的插件,但是不起作用。我不知道为什么!

0 个答案:

没有答案