Thank you.
I tried your suggestion on XCode on MacOS. But it still does not break for me.
I set a break point at:
Local<Script> Script::Compile(v8::Handle<String> source,
v8::ScriptOrigin* origin,
v8::ScriptData* script_data) {
ON_BAILOUT("v8::Script::Compile()", return Local<Script>());
LOG_API("Script::Compile");
ENTER_V8;
i::Handle<i::String> str = Utils::OpenHandle(*source);
i::Handle<i::Object> name_obj;
int line_offset = 0;
int column_offset = 0;
/* Set my break point in the line below */
if (origin != NULL) {
Here is how I set my breakpoint:
1. I open the build/all.xcodeproj
2. click open the test_shell.xcodeproj
3. click open the v8.xcodeproject
4. open api.cc
5. set breakpoint in the location I mentioned above
6. go to test_shell.xcodeproj and click 'Build and Go(Debug)'
7. load an url, (e.g. www.yahoo.com)
The site gets loaded, but the break point never breaks.
I appreciate if anyone can help me with this.
Thank you.
2009/5/27 Søren Gjesse <[email protected]>:
> Hi,
>
> There must be something wrong with your setting of break points. There is
> only on way of getting JavaScript code into V8 from a client application,
> and that is through the static method v8::Script::Compile in the public API.
> This method is defined in api.cc where it in turn calls
> v8::internal:Compiler::Complie defined in compiler.cc. All the adding of
> code to V8 from Chromium is handled in v8_proxy.cpp.
>
> Code added from within JavaScript through the use of eval will be handled by
> v8::internal:Compiler::ComplieEval.
>
> Note that if you are using Chromium for this you need to take the
> multiprocess architecture into account either by using the --single-process
> switch to turn it off or by attaching to the process you will actually like
> to debug.
>
> Regards,
> Søren
>
> On Thu, May 28, 2009 at 07:52, Lucius Fox <[email protected]> wrote:
>>
>> Hi,
>>
>> i am trying to understand how chromium passes JS script node/JS file
>> to v8 engine for execution.
>> So i setup breakpoints in Xcode with test)shell xcode project opened:
>> Compiler::Compile
>> Compiler::CompileEval
>> Compiler::CompileLazy
>>
>> And then I 'build and go (debug)' to get a TestShell. It did start up
>> the TestShell, and it did break in the initial breakpoint I setup in
>> test_shell_main.cc. But when I load a page with Javascript for sure,
>> e.g. www.cnn.con, it never breaks in the Compiler functions that I
>> mentioned above.
>>
>> Can you please tell me how does chromium passes JS script node/JS file
>> to v8 engine for execution
>>
>> >>
>
>
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---