From WikiChip
Editing mirc/commands/debug

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
 
{{mirc title|/debug Command}}
 
{{mirc title|/debug Command}}
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 '''->'''
+
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 ==
 
== Synopsis ==
  /debug [-cinptrNoN] [color_index] [on | off | @window | filename] [identifier]
+
  /debug [-cinptrN] [color] [on | off | @window | filename] [identifier]
  
 
== Switches ==
 
== Switches ==
Line 12: Line 12:
 
* '''-t''' - Adds timestamp to the debug lines
 
* '''-t''' - Adds timestamp to the debug lines
 
* '''-rN''' - Uses the N color index as the line color for received debug lines.
 
* '''-rN''' - Uses the N color index as the line color for received debug lines.
* '''-oN''' - Uses the N color index as the line color for outbound debug lines.
 
  
 
== Parameters ==
 
== Parameters ==
* '''[color]''' - Optional text color for the debug window (Partly overridden by -rN and/or -oN) Can be color index 0-99
+
* '''[color]''' - Optional text color for the debug window
 
* '''[on|off]''' - Turns debug on or off
 
* '''[on|off]''' - Turns debug on or off
 
* '''[@window|filename]''' - outputs to a custom @window or a file
 
* '''[@window|filename]''' - outputs to a custom @window or a file
Line 21: Line 20:
  
 
== Example ==
 
== Example ==
<source lang="mIRC">;Opens @raw debug window (wrap text+
+
<syntaxhighlight lang="mIRC">;Opens @raw debug window (wrap text+
//debug -p @Raw</source>
+
//debug -p @Raw</syntaxhighlight>
  
<source lang="mIRC">;The line can be 'piped' through an alias on its way to the log file.
+
<syntaxhighlight lang="mIRC">;The line can be 'piped' through an alias on its way to the log file.
From editbox: /debug -i Log.txt $console
+
 
From script:  /debug -i Log.txt $!console
+
/debug -i Log.txt $console
  
 
Alias console {
 
Alias console {
Line 40: Line 39:
 
   ; return the line back to mIRC's log
 
   ; return the line back to mIRC's log
 
   return $1-
 
   return $1-
}</source>
+
}</syntaxhighlight>
 
 
<source lang="mIRC">
 
: This alias opens a debug window shared by all networks. Outbound lines in red, inbound lines in green. Note the identifier is listed on command line instead of calling an alias. The yellow 8 is overridden by defining in/out colors with -rNoN. Alias uses $time to display seconds without forcing all windows to show seconds in their $timestamp too
 
on *:CONNECT:{ debugg }
 
 
 
alias debugg {
 
  window -ze2Dj2000k @debug
 
  titlebar @debug active= $+ $scid($window(@debug).cid).network logging: $addtok($gettok($window(@debug).titlebar,3-,32),$network,32)
 
  debug -pir44o52 8 @debug $!+([,$time,],[,$network,] $!1-)
 
} ; Raccoon's altered by maroon
 
</source>
 
  
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|6.0}}
 
{{mIRC compatibility|6.0}}
 +
 
== See also ==
 
== See also ==
 +
* [[List of commands - mIRC|List of commands]]
 +
* [[List of identifiers - mIRC|List of identifiers]]
 
* {{mIRC|$debug}}
 
* {{mIRC|$debug}}
 
* {{mIRC|$rawmsg}}
 
* {{mIRC|$rawmsg}}
 +
{{mIRC command list}}
 +
 +
[[Category:mIRC commands|debug command - mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)