STEP 1: Open settings.json file in visual studio code and add this line below:
{
"csharp.unitTestDebuggingOptions": {
"type": "clr"
}
}STEP 2: Create .runsettings file and add this config:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<RunConfiguration>
<TargetPlatform>x64</TargetPlatform>
</RunConfiguration>
</RunSettings>STEP 3: Open settings.json file again and add path of .runsettings file you created before like this:
{
"omnisharp.testRunSettings": "C:\\Dev\\.runsettings"
}STEP 4: Open .csproj file of the project you want to debug, and add this line:
<DebugType>portable</DebugType>After completing those steps, you will be able to debug .net framework 4.7.2 projects in vscode