Use the Debug On/Debug Off toggle button in the Script Editor to control debugging. The debugging feature allows you to track the current value of any eventIn or eventOut in the script. When the scene is displayed in Cosmo Player, a debugging window appears each time a value is sent from an event that is routed to the Debugger. The debugging window displays the current value of the event.
To turn on debugging for an event, select the event in the Fields: window. Then toggle the Debug On/Debug Off button to select Debug On. When debugging is on, the Script Editor creates a route from the specified event to the Debugger node. (You can open the Outline Editor to view these routes.) A separate Debugger node is created for each event you specify.
When debugging is turned on for an event, Cosmo Worlds adds a special Debugger node to the scene to allow you to inspect script-related values. The Debugger nodes are removed when you package and publish the scene, since they aren't standard VRML nodes.
The Gallery (usr/share/data/vrml) has a file containing a Debugger node (CoRouteDebugger.wrl). Using the Outline Editor, you can wire this node directly into your scene to check values.
Jump to: