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 / .NET Framework / CLR / July 2004

Tip: Looking for answers? Try searching our database.

Debugger API

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike McPhee - 05 Jul 2004 18:02 GMT
is there a debugger API for .NET.

I need to be able to read a .net assembly for analysis and when I need to
report something about it
I need to point to the line of code when the .pdb file is present.

Is there a way to interace with .pdb files?
Niki Estner - 05 Jul 2004 19:22 GMT
I think the System.Diagnostics.SymbolStore contains classes to read debug
information. AFAIK "real" debugging isn't possible from within the .net
framework - the framework provides COM interfaces for taht purpose that may
be accessed from C++. I really don't know much more than this, but the
cordbg command line debugger is available as a sample project in the "tool
developer's guide". Might be worth a look.

Niki

> is there a debugger API for .NET.
>
[quoted text clipped - 3 lines]
>
> Is there a way to interace with .pdb files?
Mike McPhee - 06 Jul 2004 00:14 GMT
I found out that I can use the ISymWrapper but I can't seem to figure out
how to create an instance of
SymBinder. I saw that someone else had similar issues. See

http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&frame=right&th=5725b37ff3c3db3
5&seekm=d214d399.0310052206.41b4d8e8%40posting.google.com#link2


Someone from microsoft provided a "solution" which is

        IMetaDataDispenser mdd =
(IMetaDataDispenser)Activator.CreateInstance(Type.GetTypeFromCLSID(
           new Guid("e5cb7a31-7512-11d2-89ce-0080c792e5d8")));

       Guid IID_IMetadataImport = new
Guid("7DAC8207-D3AE-4c75-9B67-92801A497D44");
       IntPtr importer;
       mdd.OpenScope(fn, 0, ref IID_IMetadataImport, out importer);but it
fails on me saying can't create interface.

> I think the System.Diagnostics.SymbolStore contains classes to read debug
> information. AFAIK "real" debugging isn't possible from within the .net
[quoted text clipped - 12 lines]
> >
> > Is there a way to interace with .pdb files?

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.