Running WebKit

  1. Type this command to run Safari with the WebKit you built:


    Use the --debug option for a debug build:

    WebKit/WebKitTools/Scripts/run-safari --debug

Mac OS X

The run-safari script sets the DYLD_FRAMEWORK_PATH environment variable to point to your build products, and then launches /Applications/ DYLD_FRAMEWORK_PATH tells the system loader to prefer your build products over the frameworks installed in /System/Library/Frameworks.


The run-safari script launches the Safari executable with the /frameworkPath command line switch set to point to your build products. The /debug command line switch will be set if you pass --debug to run-safari.

It's handy to put WebKit/WebKitTools/Scripts in your shell path so you can type commands like run-safari without specifying a full path.