|
Whitebeam Template Reference Documentation
|
System Template
mode()
Change the test mode for Pattern Page generation.
Syntax
void = rb.debug.mode(newMode)
Parameters
The 'mode' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | newMode | bool | | Required.
The new debug mode. Bye default the mode for a test site is 'true' (active) and for the
live site it is 'false' (inactive).
|
Results
The 'mode' method returns no useful information.
Remarks The Presentation Engine maintains a debug output buffer, that can be written to
using rb.debug.write. By default
calls to rb.debug.write are ignored in the live site. This is generally the desired
behaviour - the live site has been debugged and there should be no problems with it. There may however be occassions when there are problems with the live site that
cannot be reproduced on the test site. In these situations it can be useful to enable
the debug output buffer on the live site. This is achieved by calling this method
with a parameter of true. The method can also be called from the test site with a parameter of 'false'
in which case the debug buffer will not accept additional output. However using
this call in the test site has limited benefits. |
|
(loadtime : 154ms) |