Debug » History » Version 19
Per Amundsen, 02/16/2023 11:35 AM
1 | 1 | Per Amundsen | _Added in 1.5_ |
---|---|---|---|
2 | |||
3 | 18 | Per Amundsen | */debug [-acdgNeinpstrNoNUN] [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 | 19 | Per Amundsen | table(ktable). |
16 | |*Switch*|*Description*| |
||
17 | | -c | Closes the associated custom window. (used with off) | |
||
18 | | -dN | Enable [[Editbox Control|Editbox]]; 0 = single, 1 = multi, 2 = auto, 3 = default. *(AdiIRC only)* | |
||
19 | | -e | Adds extended debug information. *(AdiIRC only)* | |
||
20 | | -i | Calls the specified identifier before a debug line is logged. The return value of the identifier is used as the debug line. | |
||
21 | | -n | Minimizes the custom window, if a new one is created. | |
||
22 | | -p | *TODO* | |
||
23 | | -t | Adds timestamp to the debug line. | |
||
24 | | -s | Open a window for debugging scripts. *(AdiIRC only)* | |
||
25 | | -a | Only show the result when debugging scripts. *(AdiIRC only)* | |
||
26 | | -g | Ignore scripts running in timers when debugging scripts. *(AdiIRC only)* | |
||
27 | | -rN | Uses the N color index as the line color for received debug lines. | |
||
28 | | -oN | Uses the N color index as the line color for outbound debug lines. | |
||
29 | | -UN | If N = 1, enables UTF8 encoding of the output, if N = 2, disables UTF8 encoding, otherwise uses the default. *(AdiIRC only)* | |
||
30 | 1 | Per Amundsen | |
31 | 18 | Per Amundsen | *Parameters* |
32 | 3 | Per Amundsen | |
33 | 19 | Per Amundsen | table(ktable). |
34 | |*Parameter*|*Description*| |
||
35 | | [N] | Line color to use in the custom window. | |
||
36 | | <notextile>[on | off]</notextile> | Turns debugging on or off. | |
||
37 | | <notextile>[@window | filename]</notextile> | Custom window or filename to log to. | |
||
38 | | [identifier] | Identifier to parse a line, used with -i. | |
||
39 | 5 | Per Amundsen | |
40 | *Example* |
||
41 | |||
42 | <pre> |
||
43 | ; Turns on debug to custom window named '@debug' and minimizes it. |
||
44 | /debug -n @debug |
||
45 | |||
46 | ; Turns off debug and closes the custom window |
||
47 | /debug -c off |
||
48 | |||
49 | ; Turns on debug to file named 'debug.log' and enables timestamp. |
||
50 | /debug -t debug.log |
||
51 | </pre> |