Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does disassembler/disassembly-window pops up sometimes when I debug my asp.net website?

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??

like image 395
Arawn Avatar asked Dec 21 '22 01:12

Arawn


2 Answers

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)

like image 132
xanatos Avatar answered Feb 02 '23 00:02

xanatos


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.

like image 43
juhan_h Avatar answered Feb 02 '23 00:02

juhan_h