outputDebugString
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function outputs scripting debug messages, which can be read by enabling the debug textbox. The debug display level can then be set so that info or warning messages get filtered out.
Note
Color values are only applied when debug level is 0 or 4.
Syntax
outputDebugString ( )Code Examples
server
This script notifies when its resource has been loaded using a debug message:
function resourceStartNotify ( resourcename ) -- if the started resource is this one if ( resourcename == getThisResource() ) then -- send an info debug message as a notification outputDebugString ( "Resource " .. getResourceName(resourcename) .. " loaded." ) endendaddEventHandler( "onResourceStart", root, resourceStartNotify )