在使用Ionide在F#上调试VSCode应用程序时,会出现此错误
Unable to launch debugger worker process (vsdbg) through the terminal. spawn xterm ENOENT

发布于 2022-08-06 18:20:01
的根文件夹中添加一个worskpace

运行调试器之后,将提示您创建该任务。
运行

这里是我的示例配置,相同的字段,但使用它们从工作区文件,而不是直接在. .vscode/* (个人偏好)
{
"folders": [
{
"path": "."
}
],
"settings": {},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// Change this path to point to your entrypoint
"program": "${workspaceFolder}/bin/Debug/net6.0/hello-world.dll",
"args": ["Hello"],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
}
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
}不幸的是,我无法从Ionide选项卡上运行它。如果你知道如何在WS2上解决这个问题,请告诉我。

https://stackoverflow.com/questions/73262286
复制相似问题