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
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