Name

DebugObject

Synopsis

LZX: DebugObject
JavaScript: DebugObject
Type: Class
Access: public
Topic: Development.Unit Testing
Declared in: lps/components/lzunit/lzunit.lzx

Description

DebugObject is a base class for all the other classes in LZUnit that supports the debugging of LZUnit itself. Each subclass overrides the debugFields and _dbg_typename methods. debugFields should return an array of the fields of the class that should be printed when debugging. _dbg_typename should return a string that is the descriptive name of the class for debugging.

Superclass Chain

node (LzNode) » view (LzView) » DebugObject

Known Subclasses

Known Direct Subclasses: Test, TestResult

Details

Properties (1)

debugWrite
<attribute name="debugWrite" />
public var debugWrite;
whether or not to emit debugging statements

Methods (4)

construct()
<method name="construct" args="parent, args" />
public function construct(parent, args);
_dbg_name()
<method name="_dbg_name" />
public function _dbg_name() : String;
_dbg_typename()
<method name="_dbg_typename" />
public function _dbg_typename();
debugFields()
<method name="debugFields" />
public function debugFields();

LZX Synopsis

<class name="DebugObject" extends=" LzView ">
  <attribute name=" debugWrite " />
  <method name=" construct " args="parent, args" />
  <method name=" _dbg_name " />
  <method name=" _dbg_typename " />
  <method name=" debugFields " />
</class>

JavaScript Synopsis

public DebugObject extends  LzView  {
  public var debugWrite ;
  prototype public function construct (parent, args);
  prototype public function _dbg_name () : String;
  prototype public function _dbg_typename ();
  prototype public function debugFields ();
}