Technical Q&A QA1500

Debugging a WebKit Plug-in in Xcode

Q:  I am writing a WebKit Plug-in, how can I debug it in Xcode?

A: Follow these steps to debug a WebKit Plug-in in Xcode 2.4.1:

Figure 1  Xcode's inspector window showing settings for the debug configuration of the project.

After these steps, whenever your current build configuration is set to debug and you click "Build and Run" in Xcode, Xcode will put a symbolic link to your WebKit Plug-in in the the "Internet Plug-Ins" folder and launch Safari. If you have any breakpoints set in your plug-in and breakpoints are enabled, then Xcode will stop in your plug-in and allow you to use its debugger to step through code and debug just as you would in any other project.



Document Revision History


DateNotes
2007-06-05

Minor editorial corrections.

2006-11-16

New document that directions for debugging a WebKit plug-in in Xcode.