See the Debugging WebKit section of the website for information on how to debug WebKit from within Xcode.