Skip to content
JasXSL edited this page Nov 29, 2017 · 2 revisions

XOBJ comes with a built in chat command line on channel 0 (public chat). To use this feature, you must set up a #ROOT listener.

Syntax: debug <script>, <method>, <arg1>, <arg2...>

Ex: debug jas Attached, 0 To remove all attachments.

The debugger is enabled by:

#define ALLOW_USER_DEBUG In your root script.

You can also #define ALLOW_USER_DEBUG 2 to let anyone run debug on the code (DANGEROUS!). Any value other than 2 will limit the console to the owner. You can combine this with ALLOW_USER_DEBUG_KEY to limit it to a specific agent by key.