Es.dbgmsg

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: dbgmsg

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Outputs debug messages controlled by the eventscripts_debug level and the eventscripts_debuglog setting. This is the Python equivalent of: http://www.eventscripts.com/pages/es_dbgmsg

Arguments

  • level - The level of eventscripts_debug, or higher, at which this message outputs.
  • msg - The debug msg to show up in console.


Examples

es.dbgmsg(1, "This is a debug message.")
es.dbgmsg(1, name + "'s current health: " + str(curhealth) + ". Slap by: " + str(amount))

Notes

  • Helpful for troubleshooting at times. Don't forget to enable eventscripts_debug in the console! e.g. eventscripts_debug 1
  • Setting the level to 0 will cause the message to output always, regardless of the debug level.


See Also

blog comments powered by Disqus