diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-23 17:56:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-23 17:56:25 -0700 |
commit | 8a61d75677f4f8d563c7362df4c23dcd0475b426 (patch) | |
tree | 0a434345ff0e33d11e69cadd49b9c558e65a575c | |
parent | 4d70c93726bdbc99bfc41e651c23dc1deba9009b (diff) |
make gl and library debug options start on, when enabled at compile time
-rw-r--r-- | src/library_gl.js | 2 | ||||
-rw-r--r-- | src/runtime.js | 2 | ||||
-rw-r--r-- | src/settings.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 1e832087..29e9687c 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -6,7 +6,7 @@ var LibraryGL = { $GL: { #if GL_DEBUG - debug: false, + debug: true, #endif counter: 1, diff --git a/src/runtime.js b/src/runtime.js index 1e36ece6..7768574b 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -316,7 +316,7 @@ var Runtime = { }, #if RUNTIME_DEBUG - debug: false, // Switch to true at runtime to enable logging at the right times + debug: true, // Switch to false at runtime to disable logging at the right times printObjectMap: null, printObjectCounter: 1, diff --git a/src/settings.js b/src/settings.js index f630e5c3..452472d9 100644 --- a/src/settings.js +++ b/src/settings.js @@ -102,11 +102,11 @@ 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). 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 +var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). You can also unset + // Runtime.debug at runtime for logging to cease, and can set it when you + // want it back. A simple way to set it in C++ is + // emscripten_run_script("Runtime.debug = ...;"); +var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you can 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 |