Code Doesn't hit breakpoint in visual studio 2012

I have a mvc C # web application that I create in vs 2012, I set a breakpoint on the controller, but this breakpoint never hit, I get results, so I know this code works. The strange thing is that it does not even give the error "no characters were loaded" and make the breakpoint break. the breakpoint remains solid. Any ideas what is going on?

+6
source share
1 answer

To debug step by step, you have to do two things. You must first set a breakpoint, then you must attach a debugger to the process that runs your code. In this case, the process executing your code will be w3wp.exe . If you press CTRL + ALT + P, you will be taken to the process connection window. You won’t see w3wp here, but check the two windows at the bottom of the window to show all processes in all sessions and from all users, and then you can connect to it. Please note that if it still does not appear, this is because w3wp is not already running, so you need to make a request to your web application to deploy it. After attachment, the breakpoint should be removed if the code matches.

+8
source

Source: https://habr.com/ru/post/946809/


All Articles