diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-20 18:13:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-20 18:13:03 -0700 |
commit | 45bcf3ad360c950765db789bdd54d111d044ffc5 (patch) | |
tree | 13ca2b7b7c88165e9f191cde549f883f420d633f /src/settings.js | |
parent | 410a632a1888bde9b78d574aa682f4dc48fb488f (diff) |
make library and gl debug configurable at runtime, and share the pretty printing code
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/settings.js b/src/settings.js index 24c52d59..f630e5c3 100644 --- a/src/settings.js +++ b/src/settings.js @@ -101,9 +101,13 @@ var SAFE_HEAP_LOG = 0; // Log out all SAFE_HEAP operations var LABEL_DEBUG = 0; // Print out labels and functions as we enter them var EXCEPTION_DEBUG = 1; // Print out exceptions in emscriptened code -var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js) -var GL_DEBUG = 0; // Print out all calls into WebGL +var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). You must also set + // Runtime.debug at runtime for logging to happen, and can unset it when you + // no longer want logging. A simple way to set it in C++ is + // emscripten_run_script("Runtime.debug = 1;"); +var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you must set a runtime + // option, in this case GL.debug. var DISABLE_EXCEPTION_CATCHING = 0; // Disables generating code to actually catch exceptions. If the code you // are compiling does not actually rely on catching exceptions (but the |