如何在launch.json中设置调试器?
目前,我有
{
"version": "0.1.0",
"configurations": [
{
// Name of configuration
// Appears in the launch configuration drop down menu.
"name": "Launch Lukecxu",
"request": "launch",
"cwd": "/Users/lukexu/lukecxu",
"type": "node",
// Automatically stop program after launch.
"stopOnEntry": true,
"program": "${workspaceRoot}"
}
]
}
我在网上找到了一些,但它没有用。它说我应该"键入"作为单声道,但当我设置它是单声道时,它表示不支持类型。
对于我的系统设置,我做了brew install mono,我也安装了ionide。
现在我无法点击装订线来设置任何断点,当我点击F5时它会显示"Cannot launch program '/Users/lukexu/lukecxu'; configuring source maps might help."
是否有在VSCode中设置F#调试器的教程?
答案 0 :(得分:6)
我认为您需要安装mono debug extension
在您安装了扩展程序后,配置应该可以正常工作:
{
"version": "0.1.0",
"configurations": [
{
// optional "preLaunchTask": "Build" - some way of building your application.
"externalConsole": true,
"name": "Launch",
"type": "mono",
// Workspace relative or absolute path to the program.
"program": "${workspaceRoot}/bin/myapp/myapp.exe",
"stopOnEntry": true
},
{
"name": "Attach",
"request": "attach",
"type": "mono",
"address": "localhost",
"port": 55555
}
]
}