Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. optimized load of asp.net dll

optimized load of asp.net dll

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netdebuggingtutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sc steinhayse
    wrote on last edited by
    #1

    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?

    M 1 Reply Last reply
    0
    • S sc steinhayse

      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?

      M Offline
      M Offline
      markovl
      wrote on last edited by
      #2

      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 the Debug Info option. If it's not, try setting it to **full** and see if that helps.

      2A

      S 1 Reply Last reply
      0
      • M markovl

        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 the Debug Info option. If it's not, try setting it to **full** and see if that helps.

        2A

        S Offline
        S Offline
        sc steinhayse
        wrote on last edited by
        #3

        This option was already set on.

        M 1 Reply Last reply
        0
        • S sc steinhayse

          This option was already set on.

          M Offline
          M Offline
          markovl
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • M markovl

            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

            S Offline
            S Offline
            sc steinhayse
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups