I think you have to add a line break so that the write buffer gets flushed,
i.e. PrintF("Test\n")

On Thu, Sep 20, 2018 at 10:12 PM SudoKid <[email protected]> wrote:

> I'm a bit stuck here. When I use something like say `PrintF("Test");` I
> don't see the output in the terminal when I run the code. Is there a reason
> for this or am I confused about what `PrintF()` does?
>
> On Thursday, September 20, 2018 at 10:57:40 AM UTC-7, Yang Guo wrote:
>>
>> Take a look at src/objects-printer.cc
>>
>> Yang
>>
>> On Thu, Sep 20, 2018 at 7:53 PM Emett Speer <[email protected]> wrote:
>>
>>> Hello Yang Guo,
>>>
>>> I'm trying to track down the location of the `Print()` method you
>>> provided but I'm having trouble. Could you please point me to the file the
>>> `Print()` is located in?
>>>
>>> Thank you,
>>> Emett
>>>
>>> On Wed, Sep 19, 2018 at 11:34 AM Emett Speer <[email protected]> wrote:
>>>
>>>> Well this provides me with way more output then I used to have. Thanks
>>>> for pointing me in the right direction and providing me with sample code.
>>>> Its very appreciated.
>>>>
>>>> On Wed, Sep 19, 2018 at 11:11 AM Yang Guo <[email protected]> wrote:
>>>>
>>>>> Try adding a
>>>>>
>>>>> args.at<String>(0)->Print();
>>>>>
>>>>> to this line:
>>>>> https://cs.chromium.org/chromium/src/v8/src/runtime/runtime-compiler.cc?sq=package:chromium&dr&g=0&l=335
>>>>>
>>>>> On Wed, Sep 19, 2018 at 6:20 PM Emett Speer <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I'm still very new to C++ and know very little about V8 but I'm
>>>>>> picking both up at the moment.
>>>>>>
>>>>>> I'm looking to add extra logging to the builtins. Something that
>>>>>> would allow me to add say a log output to the `GlobalEval` builtin that
>>>>>> will output what `eval()` was called with as its arguments.
>>>>>>
>>>>>> I'm still going through the documentation on the V8 wiki though I'm
>>>>>> not sure that it will contain the required documentation.
>>>>>>
>>>>>> If anyone is willing to point me in the right direction or to the
>>>>>> area of code I would need to review for this it would be much 
>>>>>> appreciated.
>>>>>>
>>>>>> Thank you,
>>>>>> Emett Speer
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> v8-dev mailing list
>>>>>> [email protected]
>>>>>> http://groups.google.com/group/v8-dev
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "v8-dev" 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.
>>>>>>
>>>>> --
>>>>> --
>>>>> v8-dev mailing list
>>>>> [email protected]
>>>>> http://groups.google.com/group/v8-dev
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "v8-dev" 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.
>>>>>
>>>>
>>>>
>>>> --
>>>> Emett Speer
>>>> Email: [email protected]
>>>> Phone: 604-366-8439
>>>>
>>>
>>>
>>> --
>>> Emett Speer
>>>
>>> --
>>> --
>>> v8-dev mailing list
>>> [email protected]
>>> http://groups.google.com/group/v8-dev
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "v8-dev" 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.
>>>
>> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" 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.
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" 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