PC Review


Reply
Thread Tools Rate Thread

Call Hierarchy

 
 
Chris Botha
Guest
Posts: n/a
 
      20th Dec 2008
I need the call hierarchy of procedures in a project in order to trace the
calling path of procedures.
I googled and found this nifty functionality is included in VS 2010, but I
can't wait, I kind of need this right now.

Anyone knows of something available?
I'm using VS 2008 and the project is a VB .net project.

Thanks.

 
Reply With Quote
 
 
 
 
Teemu
Guest
Posts: n/a
 
      20th Dec 2008

"Chris Botha" <(E-Mail Removed)> kirjoitti viestissä
news:(E-Mail Removed)...
>I need the call hierarchy of procedures in a project in order to trace the
>calling path of procedures.
> I googled and found this nifty functionality is included in VS 2010, but I
> can't wait, I kind of need this right now.
>
> Anyone knows of something available?
> I'm using VS 2008 and the project is a VB .net project.


I'm not sure if this is what you are looking for but...

One solution is to set a breakpoint in the beginning of the Sub or Function.
When your program hits the breakpoint you can see the call stack in VB
(press Ctrl+L if it's not in sight).

-Teemu

 
Reply With Quote
 
Family Tree Mike
Guest
Posts: n/a
 
      20th Dec 2008
"Chris Botha" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I need the call hierarchy of procedures in a project in order to trace the
>calling path of procedures.
> I googled and found this nifty functionality is included in VS 2010, but I
> can't wait, I kind of need this right now.
>
> Anyone knows of something available?
> I'm using VS 2008 and the project is a VB .net project.
>
> Thanks.



You could add logging information at the start of every routine (tedious, I
know...).

Something like this could be added:

Console.Out.WriteLine(new StackTrace().ToString());


--
Mike

 
Reply With Quote
 
Chris Botha
Guest
Posts: n/a
 
      20th Dec 2008
Thanks, it is a big project in production, probably close to a thousand
functions and numerous paths to the function I am interested in, so I need
some kind of a tool to give me the call hierarchy so that I can back-track
the call paths.


"Teemu" <(E-Mail Removed)> wrote in message
news:rh43l.107319$_(E-Mail Removed)...
>
> "Chris Botha" <(E-Mail Removed)> kirjoitti viestissä
> news:(E-Mail Removed)...
>>I need the call hierarchy of procedures in a project in order to trace the
>>calling path of procedures.
>> I googled and found this nifty functionality is included in VS 2010, but
>> I can't wait, I kind of need this right now.
>>
>> Anyone knows of something available?
>> I'm using VS 2008 and the project is a VB .net project.

>
> I'm not sure if this is what you are looking for but...
>
> One solution is to set a breakpoint in the beginning of the Sub or
> Function. When your program hits the breakpoint you can see the call stack
> in VB (press Ctrl+L if it's not in sight).
>
> -Teemu


 
Reply With Quote
 
Chris Botha
Guest
Posts: n/a
 
      20th Dec 2008
Thanks, can't be done though - see my response to Teemu's message above.


"Family Tree Mike" <(E-Mail Removed)> wrote in message
news:23B4A305-97A4-47D1-AB35-(E-Mail Removed)...
> "Chris Botha" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I need the call hierarchy of procedures in a project in order to trace the
>>calling path of procedures.
>> I googled and found this nifty functionality is included in VS 2010, but
>> I can't wait, I kind of need this right now.
>>
>> Anyone knows of something available?
>> I'm using VS 2008 and the project is a VB .net project.
>>
>> Thanks.

>
>
> You could add logging information at the start of every routine (tedious,
> I know...).
>
> Something like this could be added:
>
> Console.Out.WriteLine(new StackTrace().ToString());
>
>
> --
> Mike
>

 
Reply With Quote
 
Duggi
Guest
Posts: n/a
 
      27th Dec 2008
On Dec 20, 6:49*am, "Chris Botha" <a...@aaa.aaa> wrote:
> I need the call hierarchy of procedures in a project in order to trace the
> calling path of procedures.
> I googled and found this nifty functionality is included in VS 2010, but I
> can't wait, I kind of need this right now.
>
> Anyone knows of something available?
> I'm using VS 2008 and the project is a VB .net project.
>
> Thanks.


Hi Chris,

Previously suggested methods are the best practices as I know. However
you wrote, as its big project, it is not feasiable. I am curious to
know the purpose behind knowing the calling hierarchy. Is it for the
sake of reverse engineering some maintainency project or for dynamic
analysis / code coverage of new project .... The suggestion will
differ depending on the situation.


Thanks
-Cnu
 
Reply With Quote
 
Peter Morris
Guest
Posts: n/a
 
      28th Dec 2008
Reflector lets you do that but only one method at a time rather than
auto-processing all methods and outputting the result to a report.


--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com - Think domain, not database

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Hierarchy Chris Botha Microsoft C# .NET 6 28th Dec 2008 10:09 AM
Call Hierarchy Chris Botha Microsoft VB .NET 6 28th Dec 2008 10:09 AM
Should namespace hierarchy reflect the folder hierarchy on the disk HalcyonWild Microsoft C# .NET 5 14th Nov 2005 03:20 PM
Binding DataGrid to an hierarchy of objects - problem with Stylesat the bottom of the hierarchy Terentius Neo Microsoft C# .NET 0 28th Aug 2005 01:35 PM
Warning 1684 CA2214 : Microsoft.Usage : 'RandomShade..ctor(Int32, Int32, Int32, Int32, Int32)' contains a call chain that results in a call to a virtual method defined by the class. Review the following call stack for unintended consequences: steve bull Microsoft C# .NET 4 7th Jul 2005 05:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.