Difference between revisions of "DEBUG CHANNEL"

From Second Life Wiki
Jump to navigation Jump to search
Line 17: Line 17:
|events=
|events=
{{LSL DefineRow||[[listen]]|}}
{{LSL DefineRow||[[listen]]|}}
|helpers=
<lsl>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();
    }
}</lsl>
|location=
|location=
'linden\indra\llcommon\indra_constants.h' as CHAT_CHANNEL_DEBUG (with a value of S32_MAX)
'linden\indra\llcommon\indra_constants.h' as CHAT_CHANNEL_DEBUG (with a value of S32_MAX)

Revision as of 13:09, 12 October 2008

Description

Constant: integer DEBUG_CHANNEL = 0x7FFFFFFF;

The integer constant DEBUG_CHANNEL has the value 0x7FFFFFFF

Chat channel reserved for debug and error messages from scripts. The client will display these in the script console.

Related Articles

Constants

•  PUBLIC_CHANNEL

Functions

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

Events

•  listen

Useful Snippets

<lsl>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();
   }

}</lsl>

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 debug and error messages from scripts.