Skip to content

Instantly share code, notes, and snippets.

@rje
Last active January 3, 2016 07:28
Show Gist options
  • Save rje/8429153 to your computer and use it in GitHub Desktop.
Save rje/8429153 to your computer and use it in GitHub Desktop.
var stack = new System.Diagnostics.StackTrace(true);
foreach(var frame in stack.GetFrames ()) {
if(!string.IsNullOrEmpty(frame.GetFileName())) {
Debug.Log (frame.GetMethod () + ": " + frame.GetFileName() + ":" + frame.GetFileLineNumber());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment