Confirmed users
231
edits
No edit summary |
No edit summary |
||
Line 91: | Line 91: | ||
} | } | ||
</pre> | </pre> | ||
The debugger client will send event notifications for a number of events the application may be interested in. These events include state changes in the debugger, like pausing and resuming, stack frames or source scripts being ready for retrieval, etc. | The debugger client will send event notifications for a number of events the application may be interested in. These events include state changes in the debugger, like pausing and resuming, stack frames or source scripts being ready for retrieval, etc. | ||
== Handling location changes == | == Handling location changes == | ||
When teh user navigates away from a page, a tabNavigated event will be fired. The proper way to handle this event is to detach from the previous thread and tab and attach to the new ones:<br> | |||
<br> | |||
<pre>function onTab() | <pre>function onTab() | ||
{ | { | ||
Line 110: | Line 106: | ||
}); | }); | ||
}); | }); | ||
} | }</pre> | ||
boo | |||
foo | |||
<br> | |||
<pre> | |||
/** | /** | ||
* Handler for entering pause state. | * Handler for entering pause state. |