One option is to call one of the ShortPrint, Print or PrintLn methods on
them (Print and PrintLn are only available in debug mode). That will print
their content to stdout. Note that this applies to the internal object
types, e.g the String* in source.val_ not source itself.

Regards,
Søren

On Fri, Jun 11, 2010 at 04:57, Vitali Lovich <[email protected]> wrote:

> Hey, I'm trying to hack on v8 & I'm trying to figure out how to examine the
> v8 variables.
>
> For example, I'm trying to figure out some string parameters that are
> passed to compile but they all come up as opaque types & I'm not sure how to
> retrieve the data from them.
>
> (gdb) p source.val_
> $5 = (v8::String *) 0x8352fb4
> (gdb) p *(source.val_)
> $6 = {<v8::Primitive> = {<v8::Value> = {<v8::Data> = {<No data fields>},
> <No data fields>}, <No data fields>}, <No data fields>}
>
> Thanks,
> Vitali
>
>  --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to