Visual Studio interrupts everything in debugging

I have a solution, both on the client and on the server, with many projects, the front end is Silverlight in my solution. When the code starts, I click break all and expect to stop in the current line of code. Instead, I get the message "No source, no source code available for the current location." What could be the solution to this? Please note that this happens whenever I hit everything, no matter which part is executed. standard breakpoints stop.

+5
source share
1 answer

This seems like standard behavior ... Remember that behind the scenes you have a dll framework (ntdll.dll / windowsbase.dll / presentationframework.dll, etc.) that do their magic (listening to messages from pumps, working with the OS and other) ...

Therefore, most of the time when you are "Break All", you have very good chances to get into one of them.
You can open the window Call Stackand see where you are (you may need to right-click and " Show External Code") ... and sometimes you can also see your calls to specific methods there ...

Putting breakpoints in your code and stopping at them is usually the right stopping method in methods specific to your particular application.

+4
source

All Articles