Debugger: Difference between revisions

69 bytes removed ,  8 March 2011
m
Line 41: Line 41:
<dl>
<dl>
<dt>enabled
<dt>enabled
<dd>A boolean value indicating whether this <code>Debug</code> instance's hooks and breakpoints are currently enabled. It is an accessor property with a getter and setter: assigning to it enables or disables this <code>Debug</code> instance; reading it produces true if the instance is enabled, or false otherwise.
<dd>A boolean value indicating whether this <code>Debug</code> instance's hooks, breakpoints, and watchpoints are currently enabled. It is an accessor property with a getter and setter: assigning to it enables or disables this <code>Debug</code> instance; reading it produces true if the instance is enabled, or false otherwise.


This property gives debugger code a single point of control for disentangling itself from the debuggee, even as the debugging interface evolves. (For example, when we add a watchpoint interface, disabling the debugger object will disable all its watchpoints as well.)
This property gives debugger code a single point of control for disentangling itself from the debuggee, regardless of what sort of events or hooks or "points" we add to the interface.  
</dl>
</dl>


Confirmed users
497

edits