Remote Debugging Protocol: Difference between revisions

Jump to navigation Jump to search
→‎Thread Pauses: Add "debugger-statement" pause reason.
(→‎Listing Stack Frames: Merge "host" frames with "call" frames. Reconcile with current JSInspector.Frame behavior.)
(→‎Thread Pauses: Add "debugger-statement" pause reason.)
Line 487: Line 487:


The <i>reason</i> value describes why the thread paused. It has one of the following forms:
The <i>reason</i> value describes why the thread paused. It has one of the following forms:
  { "type":"attached" }
The thread paused because the client attached to it.
  { "type":"interrupted" }
The thread stopped because it received an "interrupt" packet from the client.
  { "type":"resume-limit" }
The client resumed the thread with a "resume" packet that included a <tt>resume-limit</tt> property, and the thread paused because the given <i>limit</i> was met.
  { "type":"debugger-statement" }
The thread stopped because it executed a JavaScript "debugger" statement.


   { "type":"breakpoint", "actors":[<i>breakpoint</i>...] }
   { "type":"breakpoint", "actors":[<i>breakpoint</i>...] }
Line 497: Line 513:


<i>TODO: This should provide more details about the watchpoint in the packet, instead of incurring another round-trip before we can display anything helpful.</i>
<i>TODO: This should provide more details about the watchpoint in the packet, instead of incurring another round-trip before we can display anything helpful.</i>
  { "type":"resume-limit" }
The client resumed the thread with a "resume" packet that included a <tt>resume-limit</tt> property, and the thread paused because the given <i>limit</i> was met.
  { "type":"interrupted" }
The thread stopped because it received an "interrupt" packet from the client.


   { "type":"client-evaluated", "value":<i>grip</i> }
   { "type":"client-evaluated", "value":<i>grip</i> }
Line 513: Line 521:


The client's prior <tt>client-evaluate</tt> command has completed abruptly; <i>grip</i> is the uncaught exception value. See [[#Evaluating_Source-Language_Expressions|Evaluating Source-Language Expressions]] for details.
The client's prior <tt>client-evaluate</tt> command has completed abruptly; <i>grip</i> is the uncaught exception value. See [[#Evaluating_Source-Language_Expressions|Evaluating Source-Language Expressions]] for details.
  { "type":"attached" }
The thread paused because the client attached to it.


== Resuming a Thread ==
== Resuming a Thread ==
Confirmed users
496

edits

Navigation menu