Is there a tool for Visual Studio which can show the list of all called functions?

前端 未结 3 1815
情歌与酒
情歌与酒 2020-12-18 12:29

When debug application, it may be usefull to see in what sequence methods are called. It is possible to write Debug.WriteLine(\"Called MethodName\") in earch method but ther

相关标签:
3条回答
  • 2020-12-18 12:46

    You could use an AOP (aspect oriented programming) framework to make your life a bit easier.

    There is a worked example of how to use PostSharp to log method calls here: http://www.codeproject.com/Articles/337564/Aspect-Oriented-Programming-Using-Csharp-and-PostS

    0 讨论(0)
  • 2020-12-18 12:47

    As mentioned in a comment, the Visual Studio Call Stack window already implements this.

    However, if you really wanted more information you can always look in to adding Tracing information.

    0 讨论(0)
  • 2020-12-18 12:48

    Runtime Flow (developed by me) shows all function calls in a .NET application.

    0 讨论(0)
提交回复
热议问题