WoW:API debugstack: Difference between revisions

→‎Example: fixed a copy/paste typo and missing parentheses
(Major rewrite. Should be more easily understood now.)
(→‎Example: fixed a copy/paste typo and missing parentheses)
Line 34: Line 34:
  13: function f() e(); end
  13: function f() e(); end
  14:
  14:
  15: function errhandler(msg); end
  15: function errhandler(msg)
  16:  print msg .. "\nCall stack: \n" .. debugstack(2, 3, 2);
  16:  print (msg .. "\nCall stack: \n" .. debugstack(2, 3, 2));
  17: end
  17: end
  18:
  18:
Anonymous user