How to get Type and namespace from an EnvDTE.StackFrame

  • Thread starter Thread starter Gerrit Beuze
  • Start date Start date
G

Gerrit Beuze

Hi all,

I'd like to get at the real underlying type when using the EnvDTE.Debugger
Currently I do this:

EnvDTE.Thread thread = dte.Debugger.CurrentThread;
foreach (StackFrame frame in thread.StackFrames) {
outputPane.OutputString("\n" + frame.FunctionName + " in " + frame.Module);
}

StackFrame.FunctionName is a fully qualified name consisting of
namespace, class name (nested classes) and method name (+ for properties get or set)

What I would like is to split this string into the parts it consists of:

namespace
containing classes for nested classes
class name
method or property name
(set or get for a property)

And then perhaps use StackFrame.Module (string) to lookup the actual
Type associated with the class.

How would I do this?


Thanks in advance,

Gerrit Beuze
ModelMaker Tools
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top