I created a test console application and tried to debug it using the VSCode and Mono Debug extensions.
Fsharp code:
module TestFharp
[<EntryPoint>]
let main argv =
printfn "Args %A" argv
let x = 5
printf "hello world"
0
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "mono",
"request": "launch",
"program": "C:/FSharp/test/TestFharp/bin/Debug/TestFharp.exe",
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": "",
"runtimeExecutable": null,
"env": {},
"externalConsole": false,
"stopOnEntry": true
},
{
"name": "Attach",
"type": "mono",
"request": "attach",
"address": "localhost",
"port": 55555
}
]
}
window exit DEBUG CONSOLE
mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:61724 C:/FSharp/test/TestFharp/bin/Debug/TestFharp.exe
Args [||]
hello world
- Do I need to make any other settings to get to the breakpoint?
- What is the difference between the exe file inside the build folder and \ projectFolder \ bin \ Debug?
source
share