Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Dongle/DebugPrint API

Last wiki revision 2007-06-07

Dongle provides very basic debug and print utility functions to its objects. These come in a number of flavors, detailed below.

This API was introduced with Dongle-1.0

Enables debugging for DongleObject at level, output being sent to frame.

  • level (number) - The debug level to enable. Any messages <= to this level will be displayed.
  • frame (table) - The chat frame to send the output to. This can be any object with an "AddMessage" method, in all actuality.
  • debugLevel - The current debugLevel of the DongleObject or nil.
  • debugFrame - The current debugFrame of the DongleObject or nil.

Sends the message to the debug chat frame (or DEFAULT_CHAT_FRAME). If extra arguments are supplied, the arguments are all tostring'd and concatenated together with comma separators.

  • msg (string, boolean, table, function, thread, userdata) - The object to print
  • ... - Any amount of objects to be printed, including nil

Sends the formatted message to the debug chat frame (or DEFAULT_CHAT_FRAME). This function expects a format string, and potentially a number of arguments.

  • msg (string) - The string to pass to string.format
  • ... - The arguments to be passed to string.format

Sends the debug message to the debug chat frame (or DEFAULT_CHAT_FRAME). If extra arguments are supplied, the arguments are all tostring'd and concatenated together with comma separators. Message is only printed if level is <= the DongleObject's current debugLevel.

  • level (number) - The level of message to send
  • ... - Any amount of objects to be printed, including nil

Sends the formatted debug message to the debug chat frame (or DEFAULT_CHAT_FRAME). This function expects a format string, and potentially a number of arguments. Message is only printed if level is <= the DongleObject's current debugLevel.

  • level (number) - The level of message to send
  • msg (string) - The string to pass to string.format
  • ... - The arguments to be passed to string.format

Categories

  • Dongle

Source

https://warcraft.wiki.gg/wiki/Dongle/DebugPrint_API · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.