Permalink
Browse files

Get some nicer debug messages (backtraces on exceptions)

  • Loading branch information...
benlangfeld committed Oct 24, 2010
1 parent 59f85b2 commit 07e64f8a5a05803052178a0cd02acd2d7a22064e
Showing with 15 additions and 0 deletions.
  1. +15 −0 index-debug.html
View
@@ -34,6 +34,21 @@
<script src = "Frameworks/Debug/Objective-J/Objective-J.js" type = "text/javascript"></script>
+ <script type="text/javascript">
+ objj_msgSend_reset();
+
+ // DEBUG OPTIONS:
+
+ // Uncomment to enable printing of backtraces on exceptions:
+ objj_msgSend_decorate(objj_backtrace_decorator);
+
+ // Uncomment to enable runtime type checking:
+ //objj_msgSend_decorate(objj_typecheck_decorator);
+
+ // Uncomment (along with both above) to print backtraces on type check errors:
+ //objj_typecheck_prints_backtrace = true;
+ </script>
+
<style type = "text/css">
body{margin:0; padding:0;}
#container {position: absolute; top:50%; left:50%;}

0 comments on commit 07e64f8

Please sign in to comment.