debug.assert(condition, message, displayCaller) Asserts that the debug.clearTrace() Erases the trace output. debug.dump(object, name, recursive, indentationPadding) Displays debug.fail(message) Breaks into the debugger (Internet Explorer only). debug.trace(text) Writes the
condition
parameter is true
. If condition
is false
, the method displays a message box with the text from message
. If displayCaller
is true
, the method also displays information about the caller. object
in readable form at the end of the page. The name
value is used as a label for the object dump. If recursive
is true
, objects inside of object
are shown recursively. The indentationPadding
value is a string that is inserted at the beginning of each line of output. text
argument to the trace output. 调试信息出现在Visual Studio的输出窗口