Log Stack Information

Do you know any tool that can register which functions are called using which parameters?

It’s not interesting to write this code myself, but I thought that there might be some tool capable of doing this ...

Thanks.

+4
source share
5 answers

This is a typical example where side orientation programming (AOP) can be used. Most AOP submissions show this very precedent (logging is a hello to the world of AOP). For example, see this PostSharp post .

+2
source

Check AQTime profiler trace function.

0
source

Check Gibraltar . In particular, the aspect of GFeature is exactly what you are looking for.

0
source

I agree with Martin that aspect-oriented programming is a great way to automatically track method execution and record all parameters. Some log libraries already come with support for AOP frameworks. For example, this article explains how to use PostSharp with our SmartInspect logging tool. There is also an example for Unity .

0
source

Runtime Flow (developed by me) records calls to .NET functions with simple parameters like strings and numbers.

0
source

Source: https://habr.com/ru/post/1313303/


All Articles