473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS AddIn read callstack

Hi NG,

currently I am working on a add-in which shell read the callstack and write
it to a file.
The question is, how can I read the current callstack of a debugged
application with a add-in?
I assume there are some framework classes, that can help me on this task but
I have no idea which ones that are.

Thanks for hints and help on this problem in advance.

Regards
Rainer Queck
May 21 '07 #1
3 1578
Hi Rainer,

I think you can use the Thread.StackFrames property to get the call stack:

#Thread.StackFrames Property (EnvDTE)
http://msdn2.microsoft.com/en-us/lib...ames(VS.80).as
px
Please let me know if this works for you.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

May 22 '07 #2
Hello Walter,

thanks for your help.

"Walter Wang [MSFT]" <wa****@online.microsoft.comschrieb im Newsbeitrag
news:Sr**************@TK2MSFTNGHUB02.phx.gbl...
Hi Rainer,

I think you can use the Thread.StackFrames property to get the call stack:

#Thread.StackFrames Property (EnvDTE)
http://msdn2.microsoft.com/en-us/lib...ames(VS.80).as
px
Please let me know if this works for you.
Yes it looks, like this brings me closer to the solution, but ....
itterating through the stackframes, how can I find out (by code) which
stackframe belongs to the method, where I set the breakpoint at?

Regards
Rainer
May 22 '07 #3
Hi Walter,

"Rainer Queck" <Ra****@noemail.noemailschrieb im Newsbeitrag
news:Oc**************@TK2MSFTNGP03.phx.gbl...
Yes it looks, like this brings me closer to the solution, but ....
itterating through the stackframes, how can I find out (by code) which
stackframe belongs to the method, where I set the breakpoint at?
Just found the answer to my question:
EnvDTE.Thread aThread = dte.Debugger.CurrentThread;
gives me what I need.

Thanks for your help!

Regards
Rainer
May 22 '07 #4

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

Similar topics

8
2996
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
6
3295
by: jchao123 | last post by:
Dear All, I have an MDB file (Access 2000/XP) which contains generic routines I use in various apps (eg, API calls, File access classes etc). I have compiled into an MDE file which I reference...
1
5937
by: Zeng | last post by:
Hello, In my code, when I run into an error, I would like to dump the callstack into error log, how do I do that w/o throwing an exception then catching it just to get the callstack? Exception...
6
6783
by: Nak | last post by:
Hi there, Is it possible to retrieve the callstack at runtime in a VB.NET application? I wish the verify that specific methods have been called as a security measure. Thanks in advance. ...
0
2240
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
11
2480
by: seannakasone | last post by:
Is there a way to get the callstack level in c++? for example, take the following code: void call3() { //callstack level would be 3 } void call2() { //callstack level would be 2 call3();
7
2599
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
6
8755
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
6
1892
by: Christof Nordiek | last post by:
Hi, I created an Addin Project with the Addin-Project-Wizzard in VS2005. I added some code from a Knowledge Base How To und built the project. It worked, and the Addin got registered with...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.