PC Review


Reply
Thread Tools Rate Thread

Debugger API

 
 
Mike McPhee
Guest
Posts: n/a
 
      5th Jul 2004
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?


 
Reply With Quote
 
 
 
 
Niki Estner
Guest
Posts: n/a
 
      5th Jul 2004
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

"Mike McPhee" <(E-Mail Removed)> wrote in
news:(E-Mail Removed)...
> 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?
>
>



 
Reply With Quote
 
Mike McPhee
Guest
Posts: n/a
 
      6th Jul 2004
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...ogle.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.

"Niki Estner" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
> "Mike McPhee" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed)...
> > 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?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception thrown outside debugger but not in debugger =?Utf-8?B?Q2hyaXMgU3RpZWZlbGluZw==?= Microsoft C# .NET 1 10th Mar 2006 03:01 PM
Unhandled exception - Different under debugger and non-debugger RalphTheExpert Microsoft VC .NET 9 14th Nov 2005 11:56 AM
MVP - please help - JIT debugger on XP .NET v1.1 Valerie Hough Microsoft Dot NET Framework 1 23rd Aug 2004 06:33 PM
JIT Debugger - ??? Rudeboy Microsoft Dot NET Framework 0 17th Jun 2004 10:53 PM
Debugger, Help! Brian Windows XP Basics 1 15th Dec 2003 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 PM.