Reputation: 41
I currently have a 4.5 .NET framework (not the core one) web/webapi project that I want to debug in VSCode. I've been search for some way to accomplish this, but it seems that VSCode has no support for this (but I have successfully built the whole solution).
I've tried some combinations of debug configurations, such as attaching to w3wp (IIS Worker process) and trying to debug, just as I do in Visual Studio 2017, but did not succeed.
Is there a way to debug a .NET Framework web/webapi (non-core) project in Visual Studio Code?
Upvotes: 0
Views: 885
Reputation: 41
I've managed to succesfully debug. I needed to change a parameter in .csproj file and then attach to iis worker process.
From:
<DebugType>full</DebugType>
To:
<DebugType>portable</DebugType>
My launch configuration on vscode:
{
"name": "iis attach",
"type": "clr",
"request": "attach",
"processId": "${command:pickProcess}"
}
Upvotes: 3