On May 15, 2009, at 10:50 PM, Meryl Silverburgh wrote:

I am able to download and compile both WebCore project and
JavaScriptCore project using XCode on Macos.
I have created a custom executable (pointing to
/Application/Safari.app) in my WebCore project.  The browser is
launched and I can set breakpoints in WebCore.  But my question is how
can I set breakpoints in JavaScript engine?

e.g. I want to load www.cnn.com in the brower and i want it to break at void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg)

in JavaScriptCore (Parser.cpp).

Just open the source file and set a breakpoint. It should work. I do that all the time.

You can also create a custom executable in the JavaScriptCore project and start Safari from there instead of the WebCore project.

    -- Darin

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to