Snippet DebugMode

Sevion

The DIY Ninja
Reaction score
424
DebugMode

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));
}
[/SPOILER]

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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top