User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

debug.irc [2006/07/28 04:10] (current)
Line 1: Line 1:
 +# $EPIC: debug.irc.txt,​v 1.2 2006/07/26 19:47:17 sthalik Exp $
 +[[load]] debug.irc \\
 +debug_section \\
 +This script provides an example of how to effectively debug sections
 +of code in large scripts, or while other scripts are loaded.
 +It consists of two aliases, which are inserted into the code to be
 +debugged to turn debugging on/off where needed.
 +Place the debug_section command inside the alias or hook you wish to
 +debug, just before the code to be debugged (note that if placed outside
 +of an alias or hook, it will only debug the LOADING of that hook, which
 +probably isnt what you want.)
 +Place the debug_endsection command at the end of the section to be
 +Logging is switched to the file epic.dbg in the current directory
 +while debugging is active. The state of logging is restored to
 +as it was before debugging was started.
 +Switching logfiles while the debugging script is inside a section
 +being debugged won't work, the debugger will reset to the logging
 +state at the point where the debugging routine was called.
debug.irc.txt ยท Last modified: 2006/07/28 04:10 (external edit)