Click here to Skip to main content
15,851,510 members
Please Sign up or sign in to vote.
1.00/5 (1 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 16:46pm

1 solution

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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900