DebugMode
Version 1.01
Version 1.01
Requirements
- N/A
JASS:
//==================================================================================================
//
// Debug Mode Library
//
// Name: Debug Mode
// Author: Sevion
//
//==================================================================================================
include "TriggerLibs/NativeLib"
//==================================================================================================
//
// System Globals
//
//==================================================================================================
bool DEBUG_MODE = false;
//==================================================================================================
//
// System Script
//
//==================================================================================================
void lib_dm_setDebugMode( bool flag )
{
DEBUG_MODE = flag;
}
void lib_dm_debugMsg( string msg )
{
UIDisplayMessage(PlayerGroupActive(), c_messageAreaDebug, StringToText(msg));
}
Just a simple way to have "Debug Mode". Not as efficient as NewGen's Debug Mode, but since there is no other way that I know of, this is the next best thing.
I know of a few natives that say something about Debug Mode, but I have no idea how to use them. TriggerDebugOutput is one of them, but I don't have a clue on how to use it.
Anyhow, it's simple and useful.
Updates
- Version 1.01: [ljass]lib_dm_debugMsg( string msg )[/ljass] addition and function renames.
- Version 1.00: Release.