我安装了带有ocaml扩展名的vscode(使用merlin),我想调试一个简单的程序,但我不能。当呼叫"显示" /" debug"时,会显示debbuging窗格,但如果我点击绿色箭头启动该程序,则不会发生任何事情。
这是我的launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "OCaml",
"type": "ocamldebug",
"request": "launch",
"program": "${workspaceRoot}/leap",
"console": "internalConsole",
"stopOnEntry": false
}
]
}
(leap是任务创建的可执行文件的名称)。 tasks.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "ocamlc",
"isShellCommand": true,
"args": ["-o", "leap", "essai1.ml"],
"showOutput": "always"
}