Project

General

Profile

Debug » History » Version 17

Per Amundsen, 12/14/2019 09:42 AM

1 1 Per Amundsen
_Added in 1.5_
2
3 16 Per Amundsen
*/debug [-acdgNeinpstrNoN] [N] [on | off | @window | filename] [identifier]*
4 1 Per Amundsen
5 8 Per Amundsen
Outputs raw server messages, both incoming and outgoing to a file or a custom window.
6 1 Per Amundsen
7 2 Per Amundsen
If a custom window is defined, and it doesn't exist, a window will be created.
8
9 4 Per Amundsen
If no filename or custom window is defined, default filename of "debug.log" will be used.
10
11 10 Per Amundsen
/debug works per server.
12
13 2 Per Amundsen
*Switches*
14
15 1 Per Amundsen
-c - Closes the associated custom window. (used with off)
16 17 Per Amundsen
-dN - Enable [[Editbox Control|Editbox]]; 0 = single, 1 = multi, 2 = auto, 3 = default. *(AdiIRC only)*
17
-e - Adds extended debug information. *(AdiIRC only)*
18 2 Per Amundsen
-i - Calls the specified identifier before a debug line is logged. The return value of the identifier is used as the debug line.
19 1 Per Amundsen
-n - Minimizes the custom window, if a new one is created.
20 17 Per Amundsen
-p - *TODO*
21 1 Per Amundsen
-t - Adds timestamp to the debug line.
22 17 Per Amundsen
-s - Open a window for debugging scripts. *(AdiIRC only)*
23
-a - Only show the result when debugging scripts. *(AdiIRC only)*
24
-g - Ignore scripts running in timers when debugging scripts. *(AdiIRC only)*
25 16 Per Amundsen
-rN - Uses the N color index as the line color for received debug lines.
26
-oN - Uses the N color index as the line color for outbound debug lines.
27 3 Per Amundsen
28
*Parameters*
29
30 9 Per Amundsen
[N] - Line color to use in the custom window.
31
[on | off] - Turns debugging on or off.
32
[@window | filename] - Custom window or filename to log to.
33
[identifier] - Identifier to parse a line, used with -i.
34 5 Per Amundsen
35
*Example*
36
37
<pre>
38
; Turns on debug to custom window named '@debug' and minimizes it.
39
/debug -n @debug
40
41
; Turns off debug and closes the custom window
42
/debug -c off
43
44
; Turns on debug to file named 'debug.log' and enables timestamp.
45
/debug -t debug.log
46
</pre>