【问题标题】:Visual Studio Code does not Debug Extension to simulateVisual Studio Code 不调试扩展来模拟
【发布时间】:2016-08-29 01:17:36
【问题描述】:

我启动了我的简单 sn-p 扩展,当我调试 VSCode 时,自动创建了一个带有配置文件的文件夹 ./vsce

当我在我的扩展文件夹中运行 F5 时,我会在下面看到这条消息。
但是 VSCode 使用配置创建了文件,我该如何解决这个问题?

Please set up the launch configuration for your application.

【问题讨论】:

  • Rafael,即使您回答了自己的问题,它也不是 Stackoverflow(问答网站)所需的格式。因此,您实际上应该在上面的文本中插入一个真正的问题。

标签: visual-studio-code vscode-extensions


【解决方案1】:

这个文件是错误的.vscode/launch.json,需要添加到git这个文件夹,改成这个:

// A launch configuration that compiles the extension and then opens it inside a new window
{
    "version": "0.1.0",
    "configurations": [
        {
            "name": "Launch Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
        }
    ]
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 1970-01-01
    • 2021-11-22
    • 1970-01-01
    • 2021-09-13
    相关资源
    最近更新 更多