Drake
Drake

Reputation: 8392

How to known the stack level reached in .NET?

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

Answers (1)

Daniel Renshaw
Daniel Renshaw

Reputation: 34187

new System.Diagnostics.StackTrace().FrameCount

Upvotes: 3

Related Questions