Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anybody know about the output "Module is optimized and the debugger option 'Just My Code' is Enabled"?

As I said in my previous question I'm migrating my app to windows Metro app.

I'm getting an output like thisenter image description here

I don't understand this output, if anybody knows then this please say!

like image 265
Gopinath Perumal Avatar asked Nov 23 '12 12:11

Gopinath Perumal


People also ask

What does enable just my code do?

Just My Code is a Visual Studio debugging feature that automatically steps over calls to system, framework, and other non-user code.

How do I change the debugger in Visual Studio?

To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.

How do I load Debug symbols in Visual Studio?

In Visual Studio, open Tools > Options > Debugging > Symbols (or Debug > Options > Symbols).


2 Answers

Usually, you do not need the module load messages, but they are turned on in default.

Tools -> Options -> Debugging -> Output Window -> Module Load Messages -> Off

like image 52
Istvan Heckl Avatar answered Sep 28 '22 04:09

Istvan Heckl


When you run your application in the debugger, the debugger tries to locate the symbols of the code being run in order to allow you to set break points, view/change memory, examining the call stack etc...

As this task can introduce unwanted delays and/or could confuse the user under normal circumstances, Visual Studio is configured by default to skip the assemblies not being part of your solution. This is normally fine as you can focus on your code. However, there are case which you need to dig under your code to spot bugs not related to your code.

For this reason, the debugger is remembering you that the symbol is being skipped due to this setting, and the picture your are seeing is imcomplete as does not take into acccount what is not "yours".

You can disable this behaviour by unchecking the option Enable Just My Code under Tools->Options->Debugging.

Moreover, if you are interested in stepping through the .NET Framework code, you have to set the Enable .NET Framework source stepping option. Setting this option, also unsets the Enable Just My Code.

like image 26
Yennefer Avatar answered Sep 28 '22 05:09

Yennefer