473,327 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to get Type and namespace from an EnvDTE.StackFrame

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Richard | last post by:
I am using Visual Basic Express (May release) and I am trying to create a solution programatically. How do I do this? I know I need to use the AddFromTemplate but how do I determine the path to the...
0
by: Jindrich Hora | last post by:
This code is in MSDN as example for attach to active instance EnvDTE.DTE. (example in C#) EnvDTE.DTE myDTE = (EnvDTE.DTE)...
2
by: Christina Androne | last post by:
Hi Has anybody encountered this: EnvDTE.DTE env = new EnvDTE.DTE(); raises this exception: {"COM object with CLSID {3C9CFE1E-389F-4118-9FAD-365385190329} is either not valid or not...
2
by: Avinash | last post by:
Hi, I am facing problem with the use of the stackframe and stacktrace for the exception hadling with Windows service. Can any one please tell me how to use of the above objects (stackframe and...
3
by: Dean Slindee | last post by:
I would like to count lines in a project using code in a VB form. Need EnvDTE as an Imports statement. Can this be done? If so, I would then recode the following into VB: foreach...
2
by: HCF_15 | last post by:
Hi all, I have a small piece of code to use StackFrame to GetMethod, I found it is inconsistent in Debug version and Release version, is there anything I am doing wrong? Here is code, build in...
2
by: newscorrespondent | last post by:
I have compiled in DEBUG mode but don't get the debug information from StackFrame class. Is there a specific setting I need to use so that information is included for a debug build. Thanks Tom
1
by: Peter K | last post by:
Hi is there a way to determine "the calling type" in c#? I have found several places on the web with examples using StackTrace, and just as many rebuttals of the presented method - stating...
3
by: Ryanivanka | last post by:
hi, is the stackframe in managed code the same as in unmanaged? or they are not related at all.... :) if I use some asm codes (get the esp register or something about stackframe) in a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.