.NETGURU
Debugger API
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.sdk.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Mike McPhee
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 to this message...
 
    
Niki Estner
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" <Click here to reveal e-mail address> wrote in
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Mike McPhee
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=5725b37ff3c3db35&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.

"Niki Estner" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jonathan Keljo [MS] (VIP)
That code snippet should work. I've attached a more complete sample.

Jonathan

This posting is provided "AS IS" with no warranties, and confers no rights.

"Mike McPhee" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Activator
System.Diagnostics.SymbolStore.SymBinder
System.Guid
System.IntPtr
System.Type




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification