Find below the steps that solved my problem:
- Delete ASP.NET temporary files from
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files - Change build configuration to debug from project properties.
- Delete bin folder from your project.
- Check if compilation debug is set to true in the web.config
- iisreset
- Rebuild the project.
Find below the steps that solved my problem:
- Delete ASP.NET temporary files from
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files - Change build configuration to debug from project properties.
- Delete bin folder from your project.
- Check if compilation debug is set to true in the web.config
- iisreset
- Rebuild the project.
There are a couple of things that could be wrong:
- Your source code and assembly could be out of sync - rebuild the application and try again.
- You could be attached to the wrong process - check to see what process you are attached to.
- There could be a logical error in your code that is causing your breakpoint to not be hit (i.e. the method you are in is not actually called, logical branching is routing control around the breakpoint, etc.)
Visual Studio debugging not working
Visual studio debugging not working
Newest 'visual-studio-debugging' Questions - Stack Overflow
.net - Debugger is not working on Visual Studio 2022 - Stack Overflow
Videos
Good morning,
I am new to VS as I just started using it yesterday, and I have done some work on it, but my build keeps failing, and I have been trying to debug it yesterday, but its been no use so far. It keeps telling me that my Service folder is not a valid Win32 application.
That happens to me ~ once per week. To resolve it, I can shut down Visual Studio and delete the hidden .vs folder. After that it's fine again.
Microsoft is probably debugging this already, except they can't, because their breakpoints are not working.
Just disable the "Enable JavaScript debugging....." from TOOLS->Options->Debugging->Genera window.
