Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2005

Tip: Looking for answers? Try searching our database.

Finding source files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Altman - 23 Mar 2005 16:58 GMT
Hi all,

While debugging, I occasionally step into a routine for which source code is
not available.  If this happens to be a routine in a dll for which I do have
source code and a pdb file, how do I tell the debugger so that it displays
source lines and symbolic debugging info?

Typically, this happens under a couple of scenarios.  The first would be if
I am running an app that I've deployed to a computer other than the
development computer.  In this case, I always deploy both the exe and dll
files.  When the app dies, I can debug the failure by having VS .Net attach
to the failed app.  At that point, I need to tell the debugger to look at
some folder on a network drive to find a copy of the current source files
for debugging.

The other common scenario would be if my managed app, running under the
debugger, wants to step into a routine in an unmanaged dll.  On my
development machine, I have a single directory where I copy all of the
unmanaged dll and pdb files that we've developed.  This directory is part of
my PATH variable, so Windows can find the dll at run-time.  But, since the
dll and pdb files have been moved from their original locations, the magic
that finds source files doesn't work.

TIA (and sorry for the excessively long question ;-)
gyurisc - 23 Mar 2005 20:35 GMT
Hello,

Check out this kb article:

HOW TO: Use a Symbol Server with the Visual Studio .NET Debugger
http://support.microsoft.com/?id=319037

one idea is to create an env variable called _NT_SYMBOL_PATH and specify
there the directories where you store your suymbols. in my experience
normally when the symbol is loaded (use the modules window while debugging)
when I step into a new function vs.net asks me where is that file located,
so I can specify where are my files.

Hope this helps,
Cris
> Hi all,
>
[quoted text clipped - 20 lines]
>
> TIA (and sorry for the excessively long question ;-)
gyurisc - 23 Mar 2005 20:36 GMT
Also if you right click on the soltion and select properties you will find
that in the settings you can specify the source and symbol files.

Kind Regards,
Cris
> Hi all,
>
[quoted text clipped - 20 lines]
>
> TIA (and sorry for the excessively long question ;-)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.