Sys.Debug Class
Provides debugging and tracing functionality for client ECMAScript (JavaScript) code. This class is static and can be invoked directly without creating an instance of the class.
Namespace: Sys
Inherits: None
debug.trace(message);
|
Name |
Description |
|---|---|
|
Initializes a new instance of the Sys.Debug Class. |
|
|
Checks for a condition, and if the condition is false, displays a message and prompts the user to break into the debugger. |
|
|
Clears all trace messages from the trace console. |
|
|
Displays a message in the debugger's output window and breaks into the debugger. |
|
|
Appends a text line to the debugger console and to the trace console, if available. |
|
|
Dumps an object to the debugger console and to the trace console, if available. |
By calling methods of the Debug class, you can display objects in readable form in the debug console, show trace messages, use assertions, and break into the debugger.
The assert method should be used to catch developer errors. To respond to user errors and run-time conditions such as network errors or permissions failures, throw an exception.
Debugging behavior, requirements, and the output of trace messages vary with different browsers. For more information, see Debugging and Tracing Ajax Applications Overview