debug Symbols won't load
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdebug' list.


Devin Rader
Trying to debug my Web Application and I randomly get the error that my
debug symbols were not loaded. The page runs great, but I cannot step
though my code and all of the Breakpoints end up with question marks on
them. I am working totally from my local machine (localhost). Can anyone
explain why this happens and if its possible to fix it.

Thanks!

Devin
Reply to this message...
 
    
Shannon Braun
I think that I had ran into something similar. To solve it:

1) Shut down the Visual Studio IDE.
2) Delete your build folders
3) Re-boot your machine

4)Open the IDE again (make sure you are building debug) and build your
project again.

Now check to see if you can step into your code again.

Another thing that I ran into with similar results debugging a web service.
If that is the case then you need to make sure that you are attached to the
aspnet_wp.net process.

Here is a code snip from my site ( <http://www.nerd2nerd.net/>
http://www.nerd2nerd.net ) that talks about stepping into web services when
debugging. You can find it under the Tips & Tricks. Although this was
dealing with a Winforms application (that contained the proxy for the web
service).

Stepping into Web Services when debugging
January 2002
One of the things that they dropped from RC1 to release was the ability to
step into a web service when the call was made from a proxy in a Win Forms
client. You can still do it by manually attaching by attaching to the
process, or you can write a macro to attach to it for you.

1. Run the Visual Studio IDE, goto Tools, Macros, Macro Explorer.

2. Right click on MyMacros project, and select New Module... I called my
Utility

3. Add the following code to the Utility module directive:

Add this above the module declaration...
Imports System
Imports System.Windows.Forms

Add this in the module body...

Sub StepIntoWS()
Try

'get all of the local processes running
Dim ps As EnvDTE.Processes = DTE.Debugger.LocalProcesses()
Dim p As EnvDTE.Process

For Each p In ps
'if we find an apsnet_wp.exe process running, attach to it
If p.Name.EndsWith("aspnet_wp.exe") = True Then
p.Attach()
Exit For
End If
Next

'now execute the step into
DTE.Debugger.StepInto(True)
Catch e As Exception
MessageBox.Show(e.Message)
End Try

End Sub

You now can assign this macro to a keyboard short-cut, that will allow you
to attach to the aspnet_wp.exe process and step into the process.

See if that helps. Good luck.

Shannon
Check out: http://www.nerd2nerd.net <http://www.nerd2nerd.net/>

-----Original Message-----
From: Devin Rader [mailto:Click here to reveal e-mail address]
Sent: Thursday, February 21, 2002 12:02 PM
To: aspngdebug
Subject: [aspngdebug] debug Symbols won't load

Trying to debug my Web Application and I randomly get the error that my
debug symbols were not loaded. The page runs great, but I cannot step
though my code and all of the Breakpoints end up with question marks on
them. I am working totally from my local machine (localhost). Can anyone
explain why this happens and if its possible to fix it.

Thanks!

Devin

| [aspngdebug] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngdebug.asp = JOIN/QUIT |
http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Pete Orologas
PROBLEM SOLVED !!!! (for me atleast)

Reload the assemblies you are having problems with into the GAC and you should be up and running. The best way to see if symbols are loaded is to go to the modules window (in run time) and look at the column labeled "Information". The information column will say "Symbols Loaded" or "Symbols Not Loaded". If you right click the assembly in question you will be given an option to "Reload Symbols" but of course this didnt work for me. So I reloaded my assembly into the gac and Bada Bing it worked. I hope this helps.

--------------------------------
From: Pete Orologas
Click here to reveal e-mail address
Reply to this message...
 
 
EnvDTE.Process
EnvDTE.Processes
System.Reflection.Module
System.Windows.Forms.MessageBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com