On Thu, Oct 22, 2015 at 3:21 PM, Deepak Subramanian
<[email protected]> wrote:
> Hi,
>
> When a JS is executing in v8. I would like to know which line it is.
>
> eg.
>
> function f1()
> {
> print - line 1 starting
> expr;
> print -line 1 ended
> print- line 2 starting
> expt;
> print -line 2 ended
> ..
> }
>
> Any pointers are highly appreciated.

You can step through the code using the debug API.  Pass
--expose_debug_as=debug and check src/debug/debug.js for step actions.
You'll need to install a debug event listener first with
debug.Debug.setListener().

-- 
-- 
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