Skipped Loading Symbols

I've been working on an ASP.NET 2.0 project (in debug mode) and I just started getting the "The breakpoint will not currently be hit. No symbols have been loaded for this document" error when I set some breakpoints in my code (in all of my projects and not a particular one)

When I run my project and view the "Modules" Window. the "symbols status" for all the items ( mscorlib, system.web.dll, syste.web.xml, etc..) is "Skipped Loading Symbols" when I right click on one of these items and choose "Load Symbols", and click ok on the "find symbols" box, I get this "The symbol file mscorlib.pdb does not match the module.

Any idea how to resolve this issue I’ve been doing some research and haven’t been able to find a solution. I deleted the temporary asp.net folder/files, and made sure that I’m in debug mode, but non of this fixed my problem. Thanks in advance for any help.



Answer this question

Skipped Loading Symbols

  • WalterIs.NET

    Hello David, Thanks very much for your reply.
    I was unable to find 'App_code.[randomchars].dll you mentioned in my modules list. Here is what I have in that list.
    mscorlib.dll
    WebDev.webserver.exe
    webdev.webhost.dll
    system.windows.forms.dll
    system.xml.dll
    webdev.webhost.dll
    webdev.webserver.exe

    and the status on all of them is "Skipped Loading Symbols"
    Any thoughts


  • matiaswoloski

    I'm having the same problem. My windows forms solution has 11 projects. I've rebuilt the Solution from the project files after reading a suggestion here. No Change. The Project that contains the VB file where I want a breakpoint doesn't show in the Modules window at all, although the code runs fine. All dependancies look fine.

    I don't know where else to look or what to try...



  • RSUser

    Yes this post is helpful,

    but still it does not work for me.

    I have one ActiveX MED3DActiveX project, and one TestActiveXContainer project.
    baseDir/Products 1.1.x/MED3DActiveX /MED3DActiveX (yes twice MED3DActiveX )
    baseDir/TestActiveXContainer

    I did this for both Projects:
    1. The option Tools -> Options -> Debugging -> General -> Enable Just My Code (JMC).

    I did this for both Projects actually it looks like its is not a project setup but VS2005 setup when i cahnge one it changes the other a restart of VS2005:
    2. Symbol search options
    "baseDir\Products 1.1.x\MED3DActiveX\MED3DActiveX"
    "baseDir\Products 1.1.x\MED3DActiveX\MED3DActiveX\Debug"
    "baseDir\TestActiveXContainer\bin\Debug"
    "baseDir\TestActiveXContainer"

    The run test protocol:
    1/ I start a first VS2005, I open the MED3DActiveX (under Windows Vista with admin privileges).
    Build-> clean then Build-> build ====> built in baseDir/Project/MED3DActiveX/MED3DActiveX/Debug
    And the dlls: AxMED3DActiveXLib.dll and MED3DActiveXLib.dll are made in baseDir/Project/MED3DActiveX/MED3DActiveX (and they are normaly registred ase a post build event: regsvr32 /s /c "$(TargetPath)")

    2/ I start a second VS2005, I open the TestActiveXContainer (under Vista with admin privileges).
    Build-> clean then Build-> build ====> built in baseDir/TestActiveXContainer/bin/Debug

    3/ under VS2005 of TestActiveXContainer : Debug->Start Without debugging

    4/ under VS2005 of MED3DActiveX : Debug->Attach to process : and the I select TestActiveXContainer.exe Managed, x86

    and when I look to the ouptut of AXproj (on top of others No symbols loaded related to windows):
    blabla ..... \bin\Debug\TestActiveXContainer.exe', Symbols loaded.
    blabla ..... TestActiveXContainer\bin\Debug\AxInterop.MED3DActiveXLib.dll', No symbols loaded.
    blabla ..... TestActiveXContainer\bin\Debug\Interop.MED3DActiveXLib.dll', No symbols loaded.

    these 2 AxInterop.MED3DActiveXLib.dll and Interop.MED3DActiveXLib.dll I do not know exacly what they are but I guess
    they make a link to the dll and there dates are the date of my last build of MED3DActiveX.

    And with all this it still not work !!!!
    Do you have a clue why

    For info I have these pdb files:
    baseDir/Project/MED3DActiveX/MED3DActiveX/AxMED3DActiveXLib.pdb
    baseDir/Project/MED3DActiveX/MED3DActiveX/Debug/MED3DActiveXLib.pdb
    baseDir/Project/MED3DActiveX/MED3DActiveX/Debug/TestActiveXContainer.pdb

    I need your help,
    Thanks in advance,
    Marouane

  • Wilco B.

    Sam,

    I will try and address the various issues listed in this thread. Symbol loading depends upon several things.

    1. The option Tools -> Options -> Debugging -> General -> Enable Just My Code (JMC).

    If this option is enabled the managed debugger will not load symbols for any modules that are optimized. You will see the Skipped loading symbols. If you see the Symbol Load Info for the module it will provide the explanation for it. JMC is meant for debugging only code that you wrote and is targeted mostly for VB developers.

    If the option is disabled then VS will try and load symbols for everything.

    2. Symbol search options

    You can specify the locations to search for symbols via Tools -> Options -> Debugging -> Symbols. Add entries to Symbol file (pdb) locations and check "Load symbols using the updated settings when this dialog is closed". You can specify a cache location and this will make symbol loading go faster on subsequent debug sessions but note that it will consume disk space.

    In the case where symbols are next to the module VS will load them always (see 1 for exception)

    3. Symbols must match exactly with the module in order to be loaded. For instance if you have a module that is loaded and you ask debugger to load a pdb that was generated doing an earlier build of that module, VS will not load it.

    4. For ASP.NET applications e.g. web applications, web services etc be sure to set debug verb to true in the web.config file. This will ensure that a pdb is generated and deployed along with your assembly/module.

    5. You can manually load symbols by going to the modules window and selecting Load Symbols on the context menu for a given module. You can also load symbols by selecting a frame in the callstack and choosing Load Symbols from context menu.

    Your module should show up in the modules window. If it isn't then it probably isn't getting loaded. You can verify if it is getting loaded or not by inserting a break statement or a msg popup and see if the break or popup happen when you expect it to. The other possibility is that you are not attached to the right process. This can happen with web services. The debugger will not automatically attach to a web service. You may need to do stepin on the call to a webservice for this to happen.

    Hope this helps.

    Azeem Khan

    Visual Studio Debugger Team


  • dedwards152723

    I'm experiencing the same problem, others in my group are as well and have found a workaround by copying pdb (symbol) files to other directories...but this doesn't seem to work for me.
  • markodjurovic

    You don't need symbols to be loaded for the .NET Framework assemblies (ie mscorlib, System.Web, etc) to be able to debug and step through your project.

    What does it state under Symbol Status for modules named 'App_Code.[randomchars].dll



  • JeremyBeauchamp

    Furthermore, I see the following error when attaching:

    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll


  • ChrisKoenig

    Hi that was a great post .
    But I have this same problem with combine project of ASP + SilverLight ,and it's just killing all my time , white trying to figure out who to put a break point.
    I use VS 2008 Beta 2 + XP.
    Try all you walk-through but still can't put a break point.
    I have multiple symbols in my ASP website under ClientBin and with all my SilverLight project.
    I use from the ASP configuration < Link to silver-light ...> .
    Try disable Just my code , Adding symbols reference ..
    But I still got .. the ""The break-point will not currently be hit. No symbols have been loaded for this document"
    It sometime work, I think when all of my IE Instance are close for some time... and then ...
    The ASP also don't ask my when I press < F5 > if I want to use debug...any more.
    I heard that there a Hot - Fix for this but only for visual studio 2005.
    Any kind of help will .
    Welcome.
    10x allot.
    Guy.
    This issue also post in the silver-light forums.


  • Angel1241

    Ensure that Internet Explorer has the 'Disable Debugging' unchecked.
    Located in the 'Advanced' tab of the Options.

  • Lai.jet

    Thanks for info, it was very helpful.


  • DesaiSandeep

    Azeem,

    Thank you for your quick and informative response. I did disable the JMC option. And it seems to be a little more reliable, but I have 1 last problem. I've loaded the page in question, then I attach, de-attach and RE-attach, it then gives me that "wont break" warning again.

    I then refresh the page that I've attached to and it loads all of the symbols again and it's fine.

    Is there something I can do to prevent this manual process

    Thanks again!

    Sam


  • Paulg742

    Here is the solution,

    when you attach to a process the code type can be Automatique, Managed, Native , Scritpe ....
    the Automatic was not working for me, so I had to put Native because it was C++.

    Marouane

  • Skipped Loading Symbols