Why does disassembler/disassemly-window pops up some times when I debug my asp.net website?
It happens some times, not always. I have searched on Internet but no useful result was found. e.g: It happened when I was trying to debug a query; it appeared after/when I reached a particular code segment that I used make one of 4 text-boxes enabled while keeping others disabled using updatepanels (nothing ground-breaking here).
My code works fine, I repeat, this disassembly thing doesn't cause any problem, it's just that this hasn't happened before.
Does this mean that something is wrong with my code or the way I write my code...or what??
In Tools, Options, Debugging try disabling "Enable address-level debugging".
I'll add that often you can often enable "Enable just my code" (same page), but I think it is useful to keep it disable to comprehend when there is a problem outside of my code.
The window normally appear if you have: Enable address-level debugging
enabled, Enable just my code
disabled and you have configured the debugger to break on a thrown exception.
Often there are some "benign" (non-terminal) exceptions thrown inside the .NET code/other libraries code that are catched there, without surfacing in your code. With all these options "enabled (meaning set as I've told you)", the debugger will break on these exceptions (very boring quite often) and will have to show you something... But it doesn't have the source code, so it will show you the disassembly (or an empty window asking if you want to view the disassembly if you have the "Show disassembly if source is not available" disabled)
Disassembly window appears when you are trying to debug code that you do not have Symbols for and you have address-level debugging enabled.
Most common way to see this is to try to step into .Net code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With