# DEBUG_CHANNEL

*LSL constant*

```lsl
integer DEBUG_CHANNEL = 2147483647;
```

Constant groups: [Channel](/constants/groups/Channel/), [ChannelNonPublic](/constants/groups/ChannelNonPublic/)

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](/categories/chat/) for details).

Server-generated errors are broadcast the same distance as [llSay](/functions/llSay/).

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

## Helper functions

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

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [PUBLIC_CHANNEL](/constants/PUBLIC_CHANNEL/) |  |  |  |
| [COMBAT_CHANNEL](/constants/COMBAT_CHANNEL/) |  |  |  |

### Functions

- [llWhisper](/functions/llWhisper/)
- [llSay](/functions/llSay/)
- [llShout](/functions/llShout/)
- [llRegionSay](/functions/llRegionSay/)
- [llRegionSayTo](/functions/llRegionSayTo/)
- [llListen](/functions/llListen/)

### Events

- [listen](/events/listen/)

---

*Source: [DEBUG CHANNEL](https://wiki.secondlife.com/wiki/DEBUG_CHANNEL) on the Second Life Wiki. Content from the Second Life Wiki article DEBUG CHANNEL (revision 1217156, 2024-08-15), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/DEBUG_CHANNEL/
