I have a simple ASP.NET 8.0 MVC app published to a Hyper-V virtual machine with Ubuntu Server 22.04. The app is in /home/username/testapp
. I published it using a tutorial with nginx. I then ran the app and tried to attach the remote debugger to the dotnet process.
When I attach, I get this error:
I found a solution to this error that requires me to create that .vs-debugger directory manually.
After that, attaching the debugger again results in another error:
I tried this and this solution. Now, I don't get any errors thrown when I attach to the process. Visual Studio correctly goes into debug mode and the breakpoints look bounded (they are full in red color). However, when I navigate through the pages, the breakpoints are not hit.
How do I fix this issue?