VS 代码错误:“找不到类型为‘ocamldebug’的调试适配器”

问题描述 投票:0回答:1

我正在尝试在 OCaml 中的 visual studio 代码上运行文件,但它似乎不起作用。我该如何解决?

我期待它运行,但我不断收到错误。 Cannot find debug adapter for type 'ocamldebug'

我的 launch.json 文件是:

    {
        "name": "OCaml",
        "type": "ocamldebug",
        "request": "launch",
        "program": "${workspaceRoot}/main.d.byte",
        "console": "internalConsole",
        "stopOnEntry": false
    }

我有OCaml平台扩展

visual-studio-code ocaml
1个回答
0
投票

您使用的扩展不提供任何调试器。自己看看:

its pacakge.json
中没有contributes > debuggers 字段 - 至少 - 在撰写本文时没有。我假设您正在尝试遵循一些教程(也许我如何在 ubuntu 上的 VS Code 中使用 OCaml 中的调试器?)是为
hackwaly.vscode-ocaml
扩展
编写的,现在已弃用,取而代之的是您正在使用的扩展。它本身建议在 VS Code 中使用
hackwaly.ocamlearlybird
进行调试。您可以在其自述文件中找到启动配置示例

© www.soinside.com 2019 - 2024. All rights reserved.