optimized load of asp.net dll
-
I am basically trying to step through my code for a C# 2010 web application and I can not see the value of my variables in most cases since the application is 'optimized'. Since I want to be able to see the values in variables whwn I step through the code, I will let you know what I have done to solve my problem and you might be able to tell me how to fix this problem: 1. I rebuild from the file menu. 2. I selected the configuation option to be 'debug', 3. for the project file that is the web app, I made certain the optimize was not checked. 4. When I went to windows--> debug--> modules I saw the following: a. my specific dlls were recently compile, and they are optimized. b. I find some microsoft dlls saying, "Cannot find or open the PDB file." Thus can you suggest what I can to make certain my modules are not optimized so I can step through the code?
-
I am basically trying to step through my code for a C# 2010 web application and I can not see the value of my variables in most cases since the application is 'optimized'. Since I want to be able to see the values in variables whwn I step through the code, I will let you know what I have done to solve my problem and you might be able to tell me how to fix this problem: 1. I rebuild from the file menu. 2. I selected the configuation option to be 'debug', 3. for the project file that is the web app, I made certain the optimize was not checked. 4. When I went to windows--> debug--> modules I saw the following: a. my specific dlls were recently compile, and they are optimized. b. I find some microsoft dlls saying, "Cannot find or open the PDB file." Thus can you suggest what I can to make certain my modules are not optimized so I can step through the code?
-
In your project properties, at the Build tab, there is an
Advanced...
button at the bottom right corner (Output section). Click it and check the value of theDebug Info
option. If it's not, try setting it to**full**
and see if that helps.2A
This option was already set on.
-
This option was already set on.
Check your web.config file, if it includes the compilation.debug option and it's set to
true
:Also, see if the Suppress JIT optimization on module load option is not unchecked. (It's found under Options->Debugging->General). What exactly happens when you add a breakpoint and run your app?
2A
-
Check your web.config file, if it includes the compilation.debug option and it's set to
true
:Also, see if the Suppress JIT optimization on module load option is not unchecked. (It's found under Options->Debugging->General). What exactly happens when you add a breakpoint and run your app?
2A
Until two weeks ago I could not even step through the code. I changed a debugging option to just be able to see my code. I will check inot what you suggested. basically what happens are the variables are optimized and that is why I can not see their values. In all the project files, I have the 'optimized' option unchecked.