Reputation: 8392
How to know and then print out (in debug) the stack level reached in a certain moment inside a function call?
Upvotes: 0
Views: 85
Reputation: 34187
new System.Diagnostics.StackTrace().FrameCount
Upvotes: 3