Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio break all in debug

I have a solution, both client and server running, with many projects, the front end is Silverlight in my solution. As the code is running I hit break all and expect to stop in the currently running line of code. Instead I receive the "No Source Available, There is no source code available for the current location" message. What could be the solution for this? Note that it happens whenever I hit break all, no matter which part is being executed. standard breakpoints do stop.

like image 215
EitanT Avatar asked Oct 05 '22 20:10

EitanT


1 Answers

This sounds like the standard behavior... Remember that behind the scenes you have the framework dlls (ntdll.dll / windowsbase.dll / presentationframework.dll etc.) doing their magic (listening to message pumps, working with the OS etc.)...

So most of the time when you "Break All", you have a very good chance of falling into one of them.
You can open the Call Stack window and see exactly where you are (you might need to right-click and "Show External Code")... and Sometimes you might also see your specific method calls in there...

Putting breakpoints in your code and stopping in them is usually the correct method to stop in methods that are relevant to your specific application.

like image 199
Blachshma Avatar answered Oct 13 '22 09:10

Blachshma