Debugger: Difference between revisions

Jump to navigation Jump to search
117 bytes removed ,  8 March 2011
m
→‎Debugging hooks: Make error report property names look nicer.
(→‎Properties of the Debug Prototype Object: Clarify breakpoint handler calls.)
m (→‎Debugging hooks: Make error report property names look nicer.)
Line 166: Line 166:


<dl>
<dl>
<dt><code>message</code>
<dt>message
<dd>The fully formatted error message.
<dd>The fully formatted error message.
<dt><code>file</code>
<dt>file
<dd>If present, the source file name, URL, etc. (If this property is present, the <i>line</i> property will be too, and vice versa.)
<dd>If present, the source file name, URL, etc. (If this property is present, the <i>line</i> property will be too, and vice versa.)
<dt><code>line</code>
<dt>line
<dd>If present, the source line number at which the error occurred.
<dd>If present, the source line number at which the error occurred.
<dt><code>lineText</code>
<dt>lineText
<dd>If present, this is the source code of the offending line.
<dd>If present, this is the source code of the offending line.
<dt><code>offset</code>
<dt>offset
<dd>The index of the character within lineText at which the error occurred.
<dd>The index of the character within lineText at which the error occurred.
<dt><code>warning</code>
<dt>warning
<dd>Present and true if this is a warning; absent otherwise.
<dd>Present and true if this is a warning; absent otherwise.
<dt><code>strict</code>
<dt>strict
<dd>Present and true if this error or warning is due to the strict option (not to be confused with ES strict mode)
<dd>Present and true if this error or warning is due to the strict option (not to be confused with ES strict mode)
<dt><code>exception</code>
<dt>exception
<dd>Present and true if an exception will be thrown; absent otherwise.
<dd>Present and true if an exception will be thrown; absent otherwise.
<dt><code>arguments</code>
<dt>arguments
<dd>An array of strings, representing the arguments substituted into the error message.
<dd>An array of strings, representing the arguments substituted into the error message.
</dl>
</dl>
Confirmed users
497

edits

Navigation menu