From WikiChip
Difference between revisions of "mirc/commands/debug"
(→Synopsis) |
(→Switches) |
||
Line 7: | Line 7: | ||
== Switches == | == Switches == | ||
* '''-c''' - Turns off debugging (close associated window as well) | * '''-c''' - Turns off debugging (close associated window as well) | ||
− | * '''-i''' - Call a specific identifier | + | * '''-i''' - Call a specific $identifier and use the returned value as the debug lines |
− | * '''-n''' - Minimize the custom window | + | * '''-n''' - Minimize the custom @window |
− | * '''-p''' - Wrap | + | * '''-p''' - Wrap the debug lines if it is too long for the @window |
− | * '''-t''' - | + | * '''-t''' - Adds timestamp to the debug lines |
+ | * '''-rN''' - Uses the N color index as the line color for received debug lines. | ||
== Parameters == | == Parameters == |
Revision as of 18:26, 7 January 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /debug command outputs raw server messages to a file or a custom window Incoming messages are prefixed with <- and outgoing messages are prefixed with ->
Synopsis
/debug [-cinptrN] [color] [on | off | @window | filename] [identifier]
Switches
- -c - Turns off debugging (close associated window as well)
- -i - Call a specific $identifier and use the returned value as the debug lines
- -n - Minimize the custom @window
- -p - Wrap the debug lines if it is too long for the @window
- -t - Adds timestamp to the debug lines
- -rN - Uses the N color index as the line color for received debug lines.
Parameters
- [color] - Optional text color for the debug window
- [on|off] - Turns debug on or off
- [@window|filename] - outputs to a custom @window or a file
- [identifier] - Calls an identifier before logging the debugged line (the returned value if used for the logging)
Example
;Opens @raw debug window (wrap text+ //debug -p @Raw
;The line can be 'piped' through an alias on its way to the log file. /debug -i Log.txt $console Alias console { ; split by spaces tokenize 32 $1- ; open window if not already opened if (!$window(Console)) window -e @Console if (<- == $1) aline -p 9 @Console >> $2- else aline -p 4 @Console << $2- ; return the line back to mIRC's log return $1- }
Compatibility
Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
mIRC commands list