On Tue, Oct 4, 2016 at 8:31 AM, Zac Hansen <[email protected]> wrote:
> I'm trying to support step in/out/next but can't figure out how to use them.
>
> I see that I get an ExecutionState in my v8::Debug::EventDetails.  I grab
> that and then I try to call prepareStep on it, but I get a:
>
> Check failed: isolate->debug()->CheckExecutionState(break_id)
>
> runtime-debug.cc 1206:
>
> RUNTIME_FUNCTION(Runtime_PrepareStep) {
>   HandleScope scope(isolate);
>   DCHECK(args.length() == 2);
>   CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
>   CHECK(isolate->debug()->CheckExecutionState(break_id)); <==== HERE
>
> I've got isolate/handle/(debug)context scopes set up when I try to make the
> call.

Hard to say what goes wrong.  Do you check that the event is a Break
event?  If that isn't it, please post your code. :-)

Try getting it working in JS using Debug.setListener() first before
porting it to C++; you'll save lots of time that way.

> Also, after I successfully call that, how do I execute the step?   Do I just
> resume execution by returning from the callback and it automatically does
> the step?   or do I have to call sometehing explicit to execute the step?

Just return.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to