Current possibilities for tracing program flow in C#?

后端 未结 2 960
轻奢々
轻奢々 2020-11-29 11:38

I have used Postsharp a few years ago to trace program flow during execution without needing to manually add trace statements to the method

2条回答
  •  庸人自扰
    2020-11-29 12:25

    Gibraltar uses PostSharp, but provides you with a very powerful client for visualizing your program flow. You can also compare snapshots, view statistics, etc.. Unfortunately it's not free :)

    Moreover, most dependency injection frameworks (Unity, Windsor, Ninject, ...) provide method interception. In most cases, you can define traced methods within the app.config file. However, I prefer PostSharp :)

提交回复
热议问题