Difference between revisions of "DEBUG CHANNEL"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
(Fixed broadcast distance for server-generated errors after testing, added note regarding filtering from objects owned by others)
 
Line 6: Line 6:
|desc=Chat channel reserved for script debugging and error messages. The client will display chat on this channel in the script console if the avatar is within the appropriate distance for the communication type (see {{LSLGC|Chat}} for details).
|desc=Chat channel reserved for script debugging and error messages. The client will display chat on this channel in the script console if the avatar is within the appropriate distance for the communication type (see {{LSLGC|Chat}} for details).


VM generated errors are typically shouted.
Server-generated errors are broadcast the same distance as [[llSay]].
 
Regardless of the source, most viewers filter out messages received on '''DEBUG_CHANNEL''' from objects owned by others.
|examples
|examples
|comment={{#var:comment}}
|comment={{#var:comment}}

Latest revision as of 21:10, 5 January 2023

Description

Constant: integer DEBUG_CHANNEL = 0x7FFFFFFF;

The integer constant DEBUG_CHANNEL has the value 0x7FFFFFFF

Chat channel reserved for script debugging and error messages. The client will display chat on this channel in the script console if the avatar is within the appropriate distance for the communication type (see Chat for details).

Server-generated errors are broadcast the same distance as llSay.

Regardless of the source, most viewers filter out messages received on DEBUG_CHANNEL from objects owned by others.

Related Articles

Constants

•  PUBLIC_CHANNEL

Functions

•  llWhisper
•  llSay
•  llShout
•  llRegionSay
•  llDialog
•  llListen

Events

•  listen

Useful Snippets

key owner;

default{//little link_message debugging script
    link_message(integer a, integer b, string c, key d){
        llSay(DEBUG_CHANNEL, llList2CSV([a,b,c,d]));
        if(llGetOwner() != owner)
            llSetScriptState(llGetScriptName(), FALSE);
    }
    state_entry(){
        owner = llGetOwner();
    }
}

Deep Notes

Search JIRA for related Issues

Source

'linden\indra\llcommon\indra_constants.h' as CHAT_CHANNEL_DEBUG (with a value of S32_MAX)

Signature

integer DEBUG_CHANNEL = 0x7FFFFFFF;//Chat channel reserved for script debugging and error messages, broadcasts to all nearby users.