473,387 Members | 1,834 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,387 software developers and data experts.

Code Path

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,

Nov 15 '05 #1
8 1353
Your example is too simple.
Try to add some if, catch, throw operators and then try to
find out all pathes. :-)
Nov 15 '05 #2
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.

-----Original Message-----
Your example is too simple.
Try to add some if, catch, throw operators and then try tofind out all pathes. :-)
.

Nov 15 '05 #3
BuddyWork <an*******@discussions.microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4
You can insert a break point in method Test4 and when execution stops there, go to Debug -> Windows -> Call Stack

Thanks
Nov 15 '05 #5
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.
Thanks
.

Nov 15 '05 #6
Lalit Parashar <an*******@discussions.microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #7
Hello Jon,

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

Thanks
-----Original Message-----
BuddyWork <an*******@discussions.microsoft.com> wrote:
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 JDTCall Hierarchy. (Which works both ways, btw - you can say "Find outwhat method <x> calls" and "Find out what calls method <x>".)
I agree it would be a handy feature.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.

Nov 15 '05 #8
BuddyWork <an*******@discussions.microsoft.com> wrote:
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.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #9

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

Similar topics

1
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
0
by: Chris McKeever | last post by:
I am trying to modify the Mailman Python code to stop mapping MIME-types and use the extension of the attachment instead. I am pretty much clueless as to what I need to do here, but I think I have...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
2
by: Mark | last post by:
I got this code from the Internet. Demo on the site works fine but downloaded version is not. I am a very new to .NET, I cannot figure this out, please help. Here is the code: ASPX code: <%@...
10
by: codefire | last post by:
Hi, I have some simple code - which works...kind of..here's the code: import os def print_tree(start_dir): for f in os.listdir(start_dir): fp = os.path.join(start_dir, f)
1
by: Discover | last post by:
Hi there i'm a new developer (student) and i have algorithim coded by java and i want any help for converting to c# .....please public class AssignmentProblem { double cost; //COST...
9
by: reachmsn | last post by:
Hi, At the url http://www.python.org/doc/essays/graphs.html there is some code by Guido Van Rossum for computing paths through a graph - I have pasted it below for reference - Let's write a...
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
6
by: MrDeej | last post by:
Hello! I have code wich scans the through 10 computers on a LAN for files and import them into different tabels. This code aproximitly imports 10 000 files (with 1 to 20 rows of info) a day and is...
3
by: melbourno | last post by:
I have a Perl script that I run and the out come as showing below: Log chain 1: Reading: server 2\08120700.mls Reading: server 2\08120900.mls Reading: server 1\08121100.mls Log chain 2: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.