Game Development Community

Disable debugging

by Temasek Polytechnic · in Torque Game Engine · 02/06/2007 (8:32 pm) · 2 replies

Hi.

Is it possible to remove all the printing that appears in the console when you pres the tilde key. Meaning that it doesn't save anything in the console.log file?

#1
02/06/2007 (9:43 pm)
I'm not sure. These functions might come in handy though:

cls();                  // Clear the console screen
   setLogMode(mode);       // Set the console log mode
   setEchoFileLoads(bool); // Whether or not output file loads to console
   enableWinConsole(bool); // Open the console in a separate window (used for debugging, dedicated server etc)
   trace(bool);            // Enable or disable console tracing
   
   // Use these two functions to obtain more classes / functions
   dumpConsoleClasses();   // Dumps all declared console classes
   dumpConsoleFunctions(); // Dumps all declared console functions
#2
02/06/2007 (9:46 pm)
You may also want to take a look at:

engine/core/torqueConfig.h

Namely:
/// Define me if you want to enable the profiler. 
///    See also the TORQUE_SHIPPING block below
//#define TORQUE_ENABLE_PROFILER


/// Define me if this is a shipping build; if defined I will instruct Torque
/// to batten down some hatches and generally be more "final game" oriented.
/// Notably this disables a liberal resource manager file searching, and
/// console help strings.
//#define TORQUE_SHIPPING