C#.NET中的函数跟踪
问题描述:
我如何跟踪C#中的函数
例如:
how can i trace function in C#
E.g:
Class A()
{
Button1_Click ()
{
Function A1()
}
Function A1()
{
Function B1()
}
Function B1()
{
Function C1()
}
Function C1()
{
}
}
我如何跟踪单击按钮1时调用了所有功能的信息?
我们可以在函数C1()中使用堆栈跟踪来获取所有父级和子级调用类,但是我需要一种方法,在单击Button1后立即列出所有父级和子级函数.
How can i trace that which all functions were called when Button 1 was clicked?
We can use stack trace in function C1() to get all parent and child calling classes, but i need a method where all parent and child function are listed as soon as i click Button1.
答
请参考以下链接.
http://msdn.microsoft.com/en-us/library/0x5wc973 (v = vs.100).aspx [使用ASP.NET跟踪Web应用程序 [ http://msdn.microsoft.com/en-us/library/94c55d08 (v = vs.100).aspx [
Refer the below link.
http://msdn.microsoft.com/en-us/library/0x5wc973(v=vs.100).aspx[^]
Tracing web application with ASP.NET[^]
http://msdn.microsoft.com/en-us/library/94c55d08(v=vs.100).aspx[^]