Stack rewind support in the debugger protocol

24 views
Skip to first unread message

Wouter Gazendam

unread,
Jan 29, 2015, 3:29:05 AM1/29/15
to v8-u...@googlegroups.com
Hi all,

I don't seem to see any support for rewinding the stack in the debugger protocol (a la JVM's 'Drop to Frame'). Is something like this supported?

Thanks,

Wouter Gazendam

Ben Noordhuis

unread,
Jan 29, 2015, 6:36:44 AM1/29/15
to v8-u...@googlegroups.com
On Thu, Jan 29, 2015 at 9:29 AM, Wouter Gazendam <wou...@ag5.nl> wrote:
> I don't seem to see any support for rewinding the stack in the debugger
> protocol (a la JVM's 'Drop to Frame'). Is something like this supported?

Isn't that the 'continue' request with 'stepaction' == 'out'?

Wouter Gazendam

unread,
Jan 29, 2015, 7:16:15 AM1/29/15
to v8-u...@googlegroups.com
I'd assume that stepping out would not rewind the execution to the beginning of the frame but would complete execution in the current frame and then break.



--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/ArkAxpPTsyU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Wouter Gazendam
AG5 B.V.
Oostelijke Handelskade 865
1019 BW Amsterdam
http://www.ag5.nl
Tel: 020-4630942
Fax: 020-4630946

Ben Noordhuis

unread,
Jan 29, 2015, 10:23:37 AM1/29/15
to v8-u...@googlegroups.com
On Thu, Jan 29, 2015 at 1:16 PM, Wouter Gazendam <wou...@ag5.com> wrote:
> I'd assume that stepping out would not rewind the execution to the beginning
> of the frame but would complete execution in the current frame and then
> break.

I think that's the StepFrame action (which I'm not sure is exposed
through the debugger protocol.)

Maybe consult the source if you want to be sure, the relevant bits are
in src/debug-debugger.js and src/runtime/runtime-debug.cc.

Yang Guo

unread,
Jan 30, 2015, 8:08:13 AM1/30/15
to v8-u...@googlegroups.com
Rewinding to the start of the function works to a certain extend with live edit, but I wouldn't rely on it for anything.
Reply all
Reply to author
Forward
0 new messages