| 36 | Some code that executes during initialization can be hard to debug with the default way of attaching to the child process. In this situation, the following steps allowed Xcode to attach fairly early: |
| 37 | |
| 38 | 1. Set a breakpoint in the WebCore/WK2 WebProcess code you are interested in. |
| 39 | 1. Set a breakpoint in `TestInvocation::invoke`. |
| 40 | 1. Start WebKitTestRunner with the desired arguments. |
| 41 | 1. Hit the breakpoint inside `invoke()`. |
| 42 | 1. Attach to the spawned web process (at the time of writing, named `com.apple.WebKit.WebContent.Development`. |
| 43 | 2. Continue |
| 44 | |