VSCode IDE, local debugging, Windows OS
Install C# extension from Microsoft
Switch to Run and Debug panel
Click on Generate C# Assets for Build and Debug button
Open the created file inside your project .vscode/launch.json
Add .NET Core Launch with DNCDbg configuration:
{
"name" : " .NET Core Launch with DNCDbg" ,
"type" : " coreclr" ,
"request" : " launch" ,
"preLaunchTask" : " build" ,
"env" : {
// "ENV_NAME" : "value"
},
"program" : " ${workspaceFolder}/bin/Debug/net10.0/vscode_test.dll" ,
"args" : [],
"cwd" : " ${workspaceFolder}" ,
"console" : " internalConsole" ,
"stopAtEntry" : false ,
"justMyCode" : true ,
"enableStepFiltering" : true ,
// Note: dncdbg has different behaviour compared to VSCode vsdbg, in case dll has debug symbols debugger suppresses JIT optimization.
"suppressJITOptimizations" : false ,
"expressionEvaluationOptions" : {
"allowImplicitFuncEval" : true
},
"logging" : {
"diagnosticsLog" : {
"ProtocolMessages" : true
}
},
"pipeTransport" : {
"pipeCwd" : " ${workspaceFolder}" ,
"pipeProgram" : " cmd" ,
"pipeArgs" : [" /c" ],
"debuggerPath" : " c:/users/user/dncdbg/bin/dncdbg.exe"
}
}