How to debug WatchKit and iPhone Parent App on XCode
So you made your Watch app, needing a network call, you put the call in the Parent's app delegate handleWatchKitExtensionRequest. boom, you're getting error and cannot seem to debug the parent app. ANd here you are.
At first it looks as if you cannot debug a running Watchkit app and Parent app (both on simulator at the same time using XCode 6.3. But actually you could
set a breakpoint on the line where you make the
and run the watchkit app
As the execution is paused on the specified breakpoint, go to the iPhone simulator and manually launch the parent app.
Go back to Xcode, head over to the menu bar and select Debug > Attach to Process > Your parent app . Press resume and you should be hitting the breakpoint on the parent app.
I really hope on XCode 6.4, they would just attach to the parent process automatically.
I'm using this method but I can't seem to get any println showing up. Breakpoints are working. Am I doing something wrong?
have you tried using NSLog?
does not work either :-/
Are you sure you're looking at the right debug console for your parent app process? You can toggle from the left bar