使用XDebug在VSCode中进行调试可防止在添加断点时加载网站

时间:2018-02-27 14:59:47

标签: php visual-studio-code xdebug vscode-settings vscode-debugger

当运行带有VSCode的XDebug并设置断点时,站点在完成调试之后会在某个点挂起。另外,如果我在一个甚至没有命中的页面上放置一个断点,它仍然会失败。如果我没有设置断点,一切都很好。以下是我的配置:

php.ini中的XDebug配置

 [XDebug] 
 xdebug.remote_enable = 1 
 xdebug.remote_autostart = 1

launch.json

{
    "name": "Listen for XDebug",
    "type": "php",
    "request": "launch",
    "port": 9000,
    "pathMappings": {
        "/mnt/c/": "c:/"
    }
}

0 个答案:

没有答案