Click here to Skip to main content
14,300,703 members
Rate this:
Please Sign up or sign in to vote.
See more:
Problem
How to know that subfunction2 come from subfunction1 or with another meaning

it source of subfunction2 exist on subfunction1 ?

I work on csharp language on visual studio 2015 windows form

I implement and develop big module and have more functions nested on another functions

i need when make breakpoint to function to know this function come from any place or

with another way what calling to this function done before it called and data on function

come from any place I ask this question because i work on project have more functions

nested on each others and in different places and different files

What I have tried:

Public Datatable MainFunction(string data)
{
datatable dt1=SubFunction1(string data);
}
Public Datatable SubFunction1(string data)
{
datatable dt2=SubFunction2(string data);
}
Public Datatable SubFunction2(string data)
{

}

when debug and found exception on SubFunction2

How to know that subfunction2 come from subfunction1 or with another meaning 

 source of subfunction2 exist on subfunction1
Posted
Updated 7-Feb-19 15:46pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

While running under the debugger and you hit a breakpoint, the Call Stack window will have the order of which method called which. If you can't see the Call Stack window, go to the Debug menu -> Windows --> Call Stack to see it.
   
Comments
Patrice T 7-Feb-19 22:01pm
   
help vampire, 130 questions so far.
Dave Kreskowiak 7-Feb-19 22:56pm
   
Wow. No kidding. I should have looked him up before hand.

Seems like he just copies code from the web and prays it works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100