|
|
Usage: |
|
/Debug [debuglevel] |
|
Description: |
| |
Sets the debuglevel on QLAD to the value specified. If no value, it
sets the debug value to the value it was prior to the last /Debug command issued.
If no previous /Debug command was issued and there is no value, the debuglevel
will be set to 0.
For this command to work, QLAD must be compiled to include debugging, with the
-DDEBUG CFLAG, check your Makefile.
|
|
Example: |
|
| Debug example |
# Sets the debug level. Check types.h in the qlad source tree for up to date # debugging values. They may be added together to set more than one. # # DEBUG_RAW=1, DEBUG_CONSOLE=2, DEBUG_SAVE=4, DEBUG_SAVEQUERY=8, DEBUG_PKEY=16 # DEBUG_SERVMSG=32, DEBUG_SERVSECMSG=64, DEBUG_CMD=128, DEBUG_EVENT=256, # DEBUG_KEY=512, DEBUG_QLAD=1024, DEBUG_QLAD=2048, DEBUG_USER=4096, # DEBUG_USERMSG=8192, DEBUG_CONST=16384, DEBUG_FUNC=32768
# set debug level, run our event to test it, and set it back on pcmd_testdebug cmd { /debug 256; /event debugevent; /debug; };
on debugevent { count 1; cmd /say_stat * Why, hello there; };
|
|
|
|