Xdebug无法识别断点

时间:2020-06-17 13:50:51

标签: php laravel visual-studio-code xdebug

  • PHP 7.1版
  • Ubuntu 18.04
  • Laravel 7.0
  • 应用程序路径:/Desktop/P10Software/laravel7

路径映射正确或无法修复

    {
    // 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,
            "pathMappings": {
                "/Desktop/P10Software/laravel7/": "${workspaceFolder}/"
            },
            "xdebugSettings": {
                "max_data": 65535,
                "show_hidden": 1,
                "max_children": 100,
                "max_depth": 5
            }
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000
        }
    ]
}

0 个答案:

没有答案