Revision: 2611
Author: [email protected]
Date: Mon Aug 3 07:56:44 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/v8/source/detail?r=2611
Modified:
/wiki/DebuggerProtocol.wiki
=======================================
--- /wiki/DebuggerProtocol.wiki Mon Aug 3 07:44:19 2009
+++ /wiki/DebuggerProtocol.wiki Mon Aug 3 07:56:44 2009
@@ -159,7 +159,7 @@
== Request `backtrace` ==
-The request `backtrace` returns a backtrace (or stacktrace) from the
current execution state. When issuing a request a range of frames can be
supplied. The top frame is frame number 0. If no frame range is supplied
data for all frames will be returned.
+The request `backtrace` returns a backtrace (or stacktrace) from the
current execution state. When issuing a request a range of frames can be
supplied. The top frame is frame number 0. If no frame range is supplied
data for 10 frames will be returned.
{{{
{ "seq" : <number>,
@@ -167,11 +167,12 @@
"command" : "backtrace",
"arguments" : { "fromFrame" : <number>
"toFrame" : <number>
+ "bottom" : <boolean, set to true if the bottom of the
stack is requested>
}
}
}}}
-The response contains the frame data together with the actual frames
returned and the toalt frame count.:
+The response contains the frame data together with the actual frames
returned and the toalt frame count.
{{{
{ "seq" : <number>,
@@ -181,12 +182,14 @@
"body" : { "fromFrame" : <number>
"toFrame" : <number>
"totalFrames" : <number>
- "frames" : [ ... ]
+ "frames" : <array of frames - see `frame` request for
details>
}
"running" : <is the VM running after sending this response>
"success" : true
}
}}}
+
+If there are no stack frames the result body only contains `totalFrames`
with a value of `0`. When an exception event is generated due to
compilation failures it is possible that there are no stack frames.
Here are a couple of examples.
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---