Sys.Debug traceDump Method
Dumps an object to the debugger console and to the TraceConsole<textarea> element, if available.
Syntax
Sys.Debug.traceDump(object, name);
Arguments
-
object
-
The object to dump.
-
name
-
(Optional) The name of the object.
Remarks
Debugging behavior, requirements, and the output of trace messages vary with different browsers. For more information, see ASP.NET AJAX Debugging and Tracing Overview
Example
The following example shows a click handler function that writes an object to the trace console. The example assumes the existence of an HTML element named Text1 in the default <form> element of the page. This is part of a larger example from the Sys.Debug class overview.
CS
function btnDump_onclick() {
Sys.Debug.traceDump(form1.text1, "Name textbox");
alert("Hello " + form1.text1.value + ".");
}
VB
function btnDump_onclick() {
Sys.Debug.traceDump(form1.text1, "Name textbox");
alert("Hello " + form1.text1.value + ".");
}