C# .NET 1.1 Debug Symbols not loading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    C# .NET 1.1 Debug Symbols not loading

    Hello,

    I am using VS.NET 2003 and have multiple projects in my solution and an asp.net web app which is the startup project. I have inherited this project from someone else and am trying to upgrade the project but that problem is for another day :)

    The issue I am experiencing is due to debug symbols not being loaded and therefore my breakpoints are not being hit. I just get a normal break point with a '?' symbol in the centre.

    I understand this to be associated with the dll/pdb files not being correctly used with the source files. So I have cleared out the bin folder in the web app project and rebuilt the entire solution and all the dll that the web app depends upon.

    This did not fix the problem so I went a little deeper and deleted the temporary asp.net project folders in C:\Windows\MS.N et\1.1.4322\tem p aspnet. After this I restarted VS.NET 2003 and tried debugging the web app but again no symbols are loading.

    This is a little confusing as I do have the configuration set to run in debug mode and i have rebuilt all dll's.

    Please can I get some suggestions as to what else I can look for to correct this minor problem.

    Thanks.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    This article may help:
    Tips for Debugging into System.Windows. Forms (and other managed code)
    Originally posted by Mr Gray
    Hello,

    I am using VS.NET 2003 and have multiple projects in my solution and an asp.net web app which is the startup project. I have inherited this project from someone else and am trying to upgrade the project but that problem is for another day :)

    The issue I am experiencing is due to debug symbols not being loaded and therefore my breakpoints are not being hit. I just get a normal break point with a '?' symbol in the centre.

    I understand this to be associated with the dll/pdb files not being correctly used with the source files. So I have cleared out the bin folder in the web app project and rebuilt the entire solution and all the dll that the web app depends upon.

    This did not fix the problem so I went a little deeper and deleted the temporary asp.net project folders in C:\Windows\MS.N et\1.1.4322\tem p aspnet. After this I restarted VS.NET 2003 and tried debugging the web app but again no symbols are loading.

    This is a little confusing as I do have the configuration set to run in debug mode and i have rebuilt all dll's.

    Please can I get some suggestions as to what else I can look for to correct this minor problem.

    Thanks.

    Comment

    • Mr Gray
      New Member
      • Apr 2008
      • 47

      #3
      Thanks for the response,

      Unfortunately I still have no symbols loaded but I think the link you provided was interesting anyway so I will use those debug tool in future.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Here's some of things I do when I run into this problem:
        *Hunt down and physically remove all compiled files.
        *Do a "Clean" from withen visual studio.
        *Force a re-build of any and all related projects as "debug" and not "release".
        (Be sure that "debug" build includes creation of symbol files, it's default to yes, but you can find it in the project properties)

        In reality, doing the first item fixes my problem.

        Comment

        • Mr Gray
          New Member
          • Apr 2008
          • 47

          #5
          I have fixed the problem by creating the WHOLE solution from scratch and manually importing all the files. Yes it took ages and a bit of configuring, the IDE must have got itself confused. Normally doing the "clean" as you suggest would fix this type of problem but whatever caused this specific issue I have been unable to discover.

          My suggesting is for other people that experience this kind of problem to follow Plater's advice and if that does not work, like myself, you may have to rebuild your solution.
          Last edited by Mr Gray; Apr 10 '08, 08:50 AM. Reason: Spelling mistakes

          Comment

          Working...