Changes

Jump to: navigation, search

Remote Debugging Protocol

159 bytes added, 05:11, 24 May 2013
[master 821a90d] Tweak description of 'sources' request and source actors.
To get a snapshot of all sources currently loaded by the thread actor, the client can send the following packet:
{ to: <i>threadActorID</i>, type: "sources" }
The response packet has the following form:
{ from: <i>threadActorID</i>, sources: [<i>sourceForm1</i>, <i>sourceForm2</i>, ..., <i>sourceFormN</i>] }
Where each <i>sourceForm</i> has the following form:
{ actor: <i>sourceActorID</i>, url: <i>sourceURL</i> }
Each source actor exists throughout the thread's whole lifetime.
To get the contents of a source, send the corresponding source actor the following packet:
{ to: <i>sourceActorID</i>, type: "source" }
And the source actor replies with a packet of the following form:
{ from: <i>sourceActorID</i>, source: <i>contentsOfSource</i> } where <i>contentsOfSource</i> is a grip representing the string of source code: either a JSON string, or a long string grip. (See [[#Grips|Grips]] for a description of long string grips.)
== Listing Stack Frames ==
Confirm
496
edits

Navigation menu