actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
435 stars 94 forks source link

使用标题栏下的Debug File和Run File异常 #147

Closed garyliu0816 closed 2 years ago

garyliu0816 commented 2 years ago

直接F5可以调试,但是从标题栏点击debug按钮会弹出 The 'cwd' can not be resolved in a multi folder workspace. Solution: "cwd" : "${workspaceFolder:name}" 能否帮忙看一下我的launch.json文件是否配置正确

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lua",
            "request": "launch",
            "name": "Debug",
            "program": "${workspaceFolder}/main.lua"
        }
    ]
}