[webkit-dev] How to set breakpoints in JavaScript Engine of WebKit on MacOS

Darin Adler darin at apple.com
Fri May 15 23:07:21 PDT 2009


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



More information about the webkit-dev mailing list