# Enable/Disable Debug Messages
Grammar — Enable|Enable/Disable debug messages
Flags —Native
|Action
Enable or disable debug messages
# Arguments
bool
<preset::Enable_Disable_Option> — Enable
Returns — void
native void TriggerDebugOutputEnable(bool inEnable);
# Related
Category: Debug / Trigger Debugging
- Debug Message —
void
— TriggerDebugOutput - Enable/Disable Debug Messages —
void
— TriggerDebugOutputEnable - Enable/Disable Debug Message Type —
void
— TriggerDebugEnableType - Set Debug Window Message Color —
void
— TriggerDebugSetTypeColor - Set Debug Message File —
void
— TriggerDebugSetTypeFile - Set Debug Message Filter —
void
— TriggerDebugSetTypeFilter - Set Debug Message Name —
void
— TriggerDebugSetTypeName - Open or Close Debug Window —
void
— TriggerDebugWindowOpen - Convert Integer To Debug Message Type —
int
<preset::DebugMessageType> — libNtve_gf_ConvertIntegerToDebugMessageType
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:4902
TriggerDebugSetTypeFile(8, (libCore_gv_debugPathMVPLog + ".txt"));
if ((libCore_gv_dEBUGDebuggingEnabled == false)) {
TriggerDebugOutputEnable(false);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4850
if ((libSprt_gv_dEBUGDebugMessagesEnabled == true)) {
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_5C253C81"), true);
TriggerDebugOutputEnable(false);
libSprt_gv_dEBUGDebugMessagesEnabled = false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4854
}
else {
TriggerDebugOutputEnable(true);
libSprt_gv_dEBUGDebugMessagesEnabled = true;
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_B619AFF5"), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:7248
libSprt_gv_dEBUGDebugMessagesEnabled = !(libSprt_gv_dEBUGDebugMessagesEnabled);
if ((libSprt_gv_dEBUGDebugMessagesEnabled == true)) {
TriggerDebugOutputEnable(true);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:7251
}
else {
TriggerDebugOutputEnable(false);
}
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4338
TriggerDebugSetTypeFile(14, "ACScores.txt");
if ((libCOOC_gv_cC_DevStart_Forced == false) && (GameCheatsEnabled(c_gameCheatCategoryDevelopment) == false)) {
TriggerDebugOutputEnable(false);
}