On Tue, Feb 27, 2018 at 5:16 PM, Artem Boldyrev <boldyr...@gmail.com> wrote:
> I'm debugging the chromium via visual studio and trying to find a place in
> the source code where I can access the source string that is passed to eval
> (for example, the line 'var p = 1;' via eval ('var p = 1;')) . Where do I
> put a breakpoint to see it? Do I need to specifically call any methods (add
> calls to the source code) to see this line in debug? Now in debug I can not
> find it or I do not see it. I focused on the call to GetFunctionFromEval.
> There is a lot of data in the scope variable, but I don't see the source
> string ('var p = 1;'). Help is needed. Thanks

`source` is the variable you're interested in but it's a handle (a
fancy pointer) to a string object on the JS heap.  It doesn't have a
representation that VS understands.

There are a bunch of gdb helpers in tools/gdbinit that know how to
peel V8 objects apart but there isn't anything for VS, as far as I
know.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to