Changes between Version 3 and Version 4 of Debugging WebKit with Xcode

Show
Ignore:
Timestamp:
11/12/06 04:21:37 (3 years ago)
Author:
bdash@webkit.org
Comment:

Page content was out of date

Legend:

Unmodified
Added
Removed
Modified
  • Debugging WebKit with Xcode

    v3 v4  
    1 In order to be able to do source-level debugging of WebKit code from within Xcode, do the following:[[BR]] 
    2  * [http://webkit.org/building/build.html Build WebKit] in Development configuration (you can use the `set-webkit-configuration` script to change configurations). By default, this will build the frameworks into WebKitBuild/Development. 
    3  * Create an empty Xcode project. 
    4  * Choose Project > New Custom Executable, choose the executable that you would like to debug (for example, /Applications/Safari.app), name the custom executable and click Finish. 
    5  * In the new executable's info window, select the Arguments tab, and under ''Variables to be set in the environment'', add a variable named ''DYLD_FRAMEWORK_PATH'', specifying for its value the full path to the WebKit development build location (again, by default, this will end with WebKitBuild/Development). Close the executable info window. 
    6  * Verify that the new executable is selected in Project > Set Active Executable. 
    7  * Choose Debug > Tools > Shared Libraries. Change the Default Level for User Libraries from Default (External) to All. 
    8  * Choose Debug > Debug Executable. 
     1= Debugging !WebKit With Xcode = 
    92 
    10 That's it. You'll probably want to add to your project file references to all or some of WebKit's source files, so that you can set breakpoints in them (although Xcode will show you WebKit source code even if it's not in your project). If you change a WebKit source file in Xcode and you want to test your change, don't forget to save your changes, run `build-webkit`, and start a new debug session. 
    11  
    12 Instead of starting with an empty Xcode project, you can also do the above in an existing project. This may be useful if you are debugging your own application or tool that links against WebKit. Note that custom executables and the symbol loading levels are kept in your .pbxuser file. 
     3See the [http://webkit.org/building/debug.html Debugging WebKit] section of the website for information on how to debug WebKit from within Xcode.