0

Is there an easy way to generate a log file that will trace at runtime the path through the code? I would like to see every controller, action, and view that was executed as my program runs.

Can this be done without having to add logging code to every controller, action, and view?

DaveRandom
  • 87,921
  • 11
  • 154
  • 174
John
  • 1,852
  • 4
  • 26
  • 49
  • Why not just use a profiler tool? There's one built into Visual Studio, and there are several other alternatives like the ones from RedGate and JetBrains. – bzlm Apr 14 '10 at 20:04

2 Answers2

0

Take a look at the Equatec Profiler.

Dave Swersky
  • 34,502
  • 9
  • 78
  • 118
  • http://stackoverflow.com/questions/378617/profiling-asp-net-websites-with-eqatec-profiler/937493#937493 – bzlm Apr 14 '10 at 20:05
0

If you want to see the actual execution path then try EQATEC Tracer - it does pretty much exactly what you're looking for.

You don't need to change your source at all: the tracer injects "tracing-code" into your compiled application which will at runtime tell you exactly what methods are executed and what the parameters are.