what is Stack window used for?

Hi,
what is Stack window used for?
anusdesaiAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
You can double click on a method, and it will switch debugging context so that you can check values for that method.  Plus, it will show you the current line in that method where the call was made with a green arrow.

Bob
0
 
Bob LearnedCommented:
What is the context for your question?

Bob
0
 
gregoryyoungCommented:
At a breakpoint in debug (or viewing a dump file) you can see your current call stack (what methods were called to get you where you are).

Cheers,

Greg
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Bob LearnedCommented:
Oh, man, the Call Stack (d'oh)!!

Bob
0
 
anusdesaiAuthor Commented:
current call stack ?
0
 
KevonCommented:
What's is used for?  Debugging.  It lets you know how you got to where you are now.  It is a "stack" of all functions called that got you to the break point you set.
0
 
gregoryyoungCommented:
if I have a function Foo() and it calls a function Bar()


void Foo() {
   Bar();
}

void Bar() {
   Console.WriteLine("Bar");
}

if I set a break point in Bar on the WriteLine and execute Foo() I will see that Foo was called which then called Bar() ... if Bar() were called directly I would just see Bar() and whatever called it.
0
 
gregoryyoungCommented:
I am a bit confused why I didn't atleast get an assisted answer here? The accepted answer is just an extension of my answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.