Code Path

  • Thread starter Thread starter BuddyWork
  • Start date Start date
B

BuddyWork

Hello,

Is there any tools or Add-Ins that shows you the stack at
design-time (Code Path).

Example
private void Test()
{
Test2();
}
private void Test2()
{
Test3();
Test4();
}
private void Test3()
{
}
private void Test4()
{
}

So then if I was in function Test4 then it would show in
my new StackViewer something like
Test1
- Test2
- Test4

If nothing exists then I would have to write this lovely
tool.

Thanks,
 
Your example is too simple.
Try to add some if, catch, throw operators and then try to
find out all pathes. :-)
 
Basically the approach is to give some idea what is
calling what, it does not need to understand which code
path it would run it just needs to understand which code
path could be run.

Basically I'm sure you have used the 'Go to Definition'
option when the mouse is over a function so you can see
the definition of that function, my idea is to do this as
a viewer so you can see in a glance at the given point.
 
BuddyWork said:
Basically the approach is to give some idea what is
calling what, it does not need to understand which code
path it would run it just needs to understand which code
path could be run.

Basically I'm sure you have used the 'Go to Definition'
option when the mouse is over a function so you can see
the definition of that function, my idea is to do this as
a viewer so you can see in a glance at the given point.

It sounds like what you're after is the equivalent of Eclipse's JDT
Call Hierarchy. (Which works both ways, btw - you can say "Find out
what method <x> calls" and "Find out what calls method <x>".)

I agree it would be a handy feature.
 
You can insert a break point in method Test4 and when execution stops there, go to Debug -> Windows -> Call Stack

Thanks
 
I'm aware of this but I was looking at a tool to do this
at DESIGN-TIME so when you are view code written by other
developers it's easy to see what calls what.

Thanks,
-----Original Message-----
You can insert a break point in method Test4 and when
execution stops there, go to Debug -> Windows -> Call
Stack.
 
Lalit Parashar said:
You can insert a break point in method Test4 and when execution stops
there, go to Debug -> Windows -> Call Stack.

That doesn't help when you're writing the code rather than debugging it
though.
 
Hello Jon,

Is Eclipse's JDT available for .Net because when I search
Google it finds it for java.

Thanks
 
BuddyWork said:
Is Eclipse's JDT available for .Net because when I search
Google it finds it for java.

No - the "J" of JDT is "Java". Unfortunately there's no (decent) C#
plug-in for Eclipse, as far as I know. (There's one which just does
syntax highlighting and calls the command line compiler, but that's not
really worth using.)
 
Back
Top