views:

31

answers:

1

How to know and then print out (in debug) the stack level reached in a certain moment inside a function call?

+3  A: 

new System.Diagnostics.StackTrace().FrameCount

Daniel Renshaw
thank you, i didn't found with search
marco.ragogna