如何在visual studio 2015上调试时了解源函数和源数据 [英] How to know source function and source data when debug on visual studio 2015

查看:81
本文介绍了如何在visual studio 2015上调试时了解源函数和源数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

如何知道subfunction2来自subfunction1或具有其他含义



它的来源subfunction2存在于subfunction1上?



我在visual studio 2015 windows窗体上使用csharp语言



我实现并开发大模块并将更多功能嵌套在另一个功能上



i需要断点功能来知道这个功能来自任何地方或



用另一种方式调用这个函数,然后调用它和函数数据



来自任何地方我问这个问题,因为我在项目上工作有更多的功能



彼此嵌套在不同的地方和不同的文件



我尝试过:



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

推荐答案

在调试器下运行并且遇到断点时,调用堆栈窗口将具有调用哪个方法的顺序。如果看不到调用堆栈窗口,请转到调试菜单 - > Windows - >调用Stack来查看它。
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.


这篇关于如何在visual studio 2015上调试时了解源函数和源数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆