By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,143 Members | 1,919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,143 IT Pros & Developers. It's quick & easy.

How to get Type and namespace from an EnvDTE.StackFrame

P: n/a
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
Jun 14 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.