These projects are retired. The development has stopped and we don't provide support for them anymore.

Debugging

Name

Debugging -- eases javascript debugging.

Synopsis

<SCRIPT LANGUAGE="JavaScript1.2" SRC="scripts/rl_debug.js"</SCRIPT>
                  

Requires

Browser detection

Utility functions and classes

Functions

void debug ( String message );
void showProperties ( Object objectToShow );
void startDebug ( );
void stopDebug ( );

Description

When debugging javascript applications, it's often a problem to trace the exact locations of bugs. Using alerts to display values and messages is very cumbersome and the exact order of execution is not clear under browsers that display the alerts in non-modal dialogs.

This file provides a dedicated debug window and a function to display time-stamped messages in it.

Details

Following is a detailed description of the elements listed in the synopsis.

Functions

debug
     The message parameter is printed in the debug window together with a time-stamp.

Parameters

message
the message that will be printed in the debug window.

showProperties
     The Object that is provided as parameter is analyzed and its properties are listed in a separate window. When possible, the value each property will also be displayed.

Parameters

objectToShow
object whose properties will be shown.

startDebug
     Opens the debug window.

stopDebug
     Closes the debug window.