Debugger: Difference between revisions

142 bytes added ,  19 March 2011
→‎Property Conventions: More monkey-patching friendliness.
(→‎Property Conventions: Allow monkey-patching.)
(→‎Property Conventions: More monkey-patching friendliness.)
Line 21: Line 21:
The <code>Debug</code> interface creates various sorts of objects to present the debuggee's state to the debugger. These objects' properties follow some conventions:
The <code>Debug</code> interface creates various sorts of objects to present the debuggee's state to the debugger. These objects' properties follow some conventions:
<ul>
<ul>
<li>Properties described here are configurable. This applies to both "own" and prototype properties, and to data properties and methods.
<li>Properties described here are configurable. This applies to both "own" and prototype properties, and to both methods and data properties.
<li>Non-method properties are generally writable value properties.
<li>Non-method properties are generally non-writable value properties. Since they are configurable, they can be made writable, but assigning to them has no effect on the debuggee unless stated otherwise.
<li>Instances and prototypes are extensible; you can add your own properties and methods to them.
<li>Instances and prototypes are extensible; you can add your own properties and methods to them.
</ul>
</ul>
Confirmed users
497

edits