Changes between Version 2 and Version 3 of Debugging With Xcode


Ignore:
Timestamp:
Mar 2, 2014 6:27:19 PM (8 years ago)
Author:
BJ Burg
Comment:

WKTR debugging tips

Legend:

Unmodified
Added
Removed
Modified
  • Debugging With Xcode

    v2 v3  
    3434= Debugging WebKitTestRunner =
    3535
     36Some 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
     381. Set a breakpoint in the WebCore/WK2 WebProcess code you are interested in.
     391. Set a breakpoint in `TestInvocation::invoke`.
     401. Start WebKitTestRunner with the desired arguments.
     411. Hit the breakpoint inside `invoke()`.
     421. Attach to the spawned web process (at the time of writing, named `com.apple.WebKit.WebContent.Development`.
     432. Continue
     44
    3645= Miscellaneous Tips =
    3746