OOF2: The Manual
Name
OOF.Help.Debug.Debug — Turn debugging mode on and off.
Synopsis
OOF.Help.Debug.Debug(boolean)
Details
- Parent Menu: OOF.Help.Debug
-
Callback: function
set_debugin moduleoof2.common.IO.mainmenu -
Threadability:
Threadable -
Parameters:
boolean-
A boolean value,
0(false) or1(true). This is not a keyword parameter (just enter '0' or '1', not 'boolean=1').
Description
Calling this command with an argument of 1
turns debugging mode on. Calling with with an argument of
0 turns it off. In debugging mode, menu
commands and other debugging information is echoed to terminal
from which OOF2 was launched.
Debugging mode can also be turned on by providing the --debug
command line argument. Doing it this way initializes the random
number generator with a special seed (17, the most random integer)
and adds a few more testing commands to the OOF.Help.Debug menu. Initializing the random
number is done to ensure that program behavior is deterministic in
debug mode. The extra commands are undocumented.
Echoed commands look like this:
-
0013-
00
--------------- ====
0027====
OOF.Skeleton.New(name='bones', ...))
Other debugging output has the form:
-
0004-
02
------
mainmenu.py
(115):
loaddata
done loading oofdata.py
/* OOF home */ /* OOF2 home */ /* Send mail to the OOF Team */




