Reference | Debug

These commands control the contents and visibility of the debug window.

PS.Debug ( str )

Appends text to the debug window, and opens the window if it is closed.

Parameters:

  1. str : string

The str parameter must be a valid Javascript string. Any other value causes an error.

The specified text is appended to the text already in the debugger window (if any). If you want the text to terminate with a newline, you must include it in the string.

To open the debug window without appending any text, use an empty string ("") as the PS.Debug() parameter.

PS.DebugClear ( )

Clears all text in the debug window.

Parameters: none

PS.DebugClose ( )

Closes the debug window. The contents of the window are unaffected.

Parameters: none