Add a mode for debugging the extremely flaky netcoredbg

This commit is contained in:
Ben Jackson 2021-04-11 19:23:47 +01:00
commit fa92c2a8d5

View file

@ -1,25 +1,52 @@
{ {
"configurations": { "adapters": {
"launch - netcoredbg": { "netcoredbg-debuglog": {
"adapter": "netcoredbg", "attach": {
"configuration": { "pidProperty": "processId",
"request": "launch", "pidSelect": "ask"
"program": "${workspaceRoot}/bin/Debug/netcoreapp2.2/csharp.dll",
"args": [],
"stopAtEntry": true
}
}, },
"launch - mono": { "command": [
"adapter": "vscode-mono-debug", "${gadgetDir}/netcoredbg/netcoredbg",
"configuration": { "--interpreter=vscode",
"request": "launch", "--engineLogging=${workspaceRoot}/netcoredbg.engine.log",
"program": "${workspaceRoot}/Program.exe", "--log=${workspaceRoot}/netcoredbg.log"
"console": "integratedTerminal", ],
"cwd": "${workspaceRoot}", "configuration": {
"args": [], "cwd": "${workspaceRoot}"
"env": {} },
} "name": "netcoredbg"
}
},
"configurations": {
"launch - netcoredbg": {
"adapter": "netcoredbg",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/bin/Debug/netcoreapp2.2/csharp.dll",
"args": [],
"stopAtEntry": true
}
},
"launch - netcoredbg - with debug log": {
"adapter": "netcoredbg-debuglog",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/bin/Debug/netcoreapp2.2/csharp.dll",
"args": [],
"stopAtEntry": true
}
},
"launch - mono": {
"adapter": "vscode-mono-debug",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/Program.exe",
"console": "integratedTerminal",
"cwd": "${workspaceRoot}",
"args": [],
"env": {}
} }
} }
}
} }