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.
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. When you call the assert method in your code, express the success of an operation as true or false and use that value for condition. If the operation fails (if condition is false), the assert logic is executed. The assert method should be used to catch developer errors. To respond to user errors and to run-time error conditions such as network errors or permission 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.
true to continue to execute code; false to display message and break into the debugger.
(Optional) The message to display. The default is an empty string ("").
(Optional) true to indicate that the name of the function that is calling assert should be displayed in the message. The default is false.
Clears all trace messages from the trace console.
Displays a message in the debugger's output window and breaks into the debugger.
The message to display.
Appends a text line to the debugger console and to the trace console, if available.
The text to display.
Dumps an object to the debugger console and to the trace console, if available.
The object to dump.
(Optional) The name of the object.