Changes

Jump to: navigation, search

Remote Debugging Protocol

211 bytes removed, 21:58, 26 May 2011
Listing Stack Frames: Delete stray "id" properties --- no longer needed.
where each <i>frame</i> has the form:
{ "actor":<i>actor</i>, "depth":<i>depth</i>, "id":<i>id</i>, "type":<i>type</i>, "this":<i>this</i>, ... }
where:
* <i>actor</i> is the name of an actor representing this frame;
* <i>depth</i> is the number of this frame, starting with zero for the youngest frame on the stack;
* <i>id</i> is a unique number assigned to this stack frame, to help the client identify frames across pauses;
* <i>type</i> is a string indicating what sort of frame this is; and
* <i>this</i> is a grip on the value of <tt>this</tt> for this call.
A frame for global code has the form:
{ "actor":<i>actor</i>, "depth":<i>depth</i>, "id":<i>id</i>, "type":"global", "this":<i>this</i>,
"where":<i>location</i>, "environment":<i>environment</i> }
A frame for an ordinary JavaScript function call has the form:
{ "actor":<i>actor</i>, "depth":<i>depth</i>, "id":<i>id</i>, "type":"call", "this":<i>this</i>,
"where":<i>location</i>, "environment",<i>environment</i>,
"callee":<i>callee</i>, "callee-name":<i>callee-name</i>, "arguments":<i>arguments</i> }
A frame for a call to <tt>eval</tt> has the form:
{ "actor":<i>actor</i>, "depth":<i>depth</i>, "id":<i>id</i>, "type":"eval", "this":<i>this</i>,
"where":<i>location</i>, "environment",<i>environment</i> }
When the client evaluates an expression with an <tt>client-evaluate</tt> packet, the evaluation appears on the stack as a special kind of frame, of the form:
{ "actor":<i>actor</i>, "depth":<i>depth</i>, "id":<i>id</i>, "type":"client-evaluate", "this":<i>this</i>,
"where":<i>location</i>, "environment",<i>environment</i> }
Confirm
496
edits

Navigation menu