Revision: 2613
Author: [email protected]
Date: Mon Aug 3 08:29:30 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/v8/source/detail?r=2613
Modified:
/wiki/DebuggerProtocol.wiki
=======================================
--- /wiki/DebuggerProtocol.wiki Mon Aug 3 08:14:42 2009
+++ /wiki/DebuggerProtocol.wiki Mon Aug 3 08:29:30 2009
@@ -345,11 +345,13 @@
{ "seq" : <number>,
"type" : "request",
"command" : "scripts",
- "arguments" : { "types" : <types of scripts to retrieve
- set bit 0 for native scripts
- set bit 1 for extension scripts
- set bit 2 for normal scripts
- (default is 4 for normal scripts)>
+ "arguments" : { "types" : <types of scripts to retrieve
+ set bit 0 for native scripts
+ set bit 1 for extension scripts
+ set bit 2 for normal scripts
+ (default is 4 for normal scripts)>
+ "ids" : <array of id's of scripts to return.
If this is not specified all scripts are requrned>
+ "includeSource" : <boolean indicating whether the source
code should be included for the scripts returned>
}
}
}}}
@@ -361,14 +363,23 @@
"type" : "response",
"request_seq" : <number>,
"command" : "scripts",
- "body" : [ { "name" : <name of the script>,
- "lineOffset" : <line offset within the containing
resource>
- "columnOffset" : <column offset within the
containing resource>
- "lineCount" : <number of lines in the script>
- "sourceStart" : <first 80 characters of the source>
- "sourceLength" : <total length of the source in
characters>
- "type" : <script type (see request for values)>
-
+ "body" : [ { "name" : <name of the script>,
+ "id" : <id of the script>
+ "lineOffset" : <line offset within the
containing resource>
+ "columnOffset" : <column offset within the
containing resource>
+ "lineCount" : <number of lines in the script>
+ "data" : <optional data object added
through the API>
+ "source" : <source of the script if
includeSource was specified in the request>
+ "sourceStart" : <first 80 characters of the
script if includeSource was not specified in the request>
+ "sourceLength" : <total length of the script in
characters>
+ "scriptType" : <script type (see request for
values)>
+ "compilationType" : < How was this script compiled:
+ 0 if script was compiled
through the API
+ 1 if script was compiled
through eval
+ >
+ "evalFromScript" : <if "compilationType" is 1 this
is the script from where eval was called>
+ "evalFromLocation" : { line : <
if "compilationType" is 1 this is the line in the script from where eval
was called>
+ column : <
if "compilationType" is 1 this is the column in the script from where eval
was called>
]
"running" : <is the VM running after sending this response>
"success" : true
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---