Sie Ste

Sie Ste

  • NA
  • 196
  • 185.2k

asp.net 2010 debugger is optimized so can not see the code

Jul 8 2012 1:28 AM

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?