开发者

Xcode Debugger stops if I quit the iOS simulator after clicking the Home button

开发者 https://www.devze.com 2023-03-13 19:22 出处:网络
I\'ve noticed this weird behaviour, with virtually any (well 5 different) Xcode/iOS project I\'m debugging.

I've noticed this weird behaviour, with virtually any (well 5 different) Xcode/iOS project I'm debugging.

  1. From Xcode (4.0.2) Run the project (into iOS simulator)
  2. In the simulator, click the Home button.
  3. Quit the simulator (by Cmd+Q)

==> The Xcode enters the debugger, and the stack trace shows: mach_msg_trp UIApplicationMain main

The weird thing is that if I slightly alter the sequence, as follows: 1. From Xcode (4.0.2) Run the project (into iOS simulator) 2. In the simulator, click the Home button. 3. Click my application开发者_C百科 icon (the one I'm debugging) on the iOS simulator 4. Quit the simulator (by Cmd+Q)

==> No problem...

Anyone else experience this? Any idea what this is and what's causing it?

Thanks


It's not weird, just the way how xcode debug works.. When you start for debug it just link the debug session with instance running on the simulator.. So if you press home button, it stops debugging session because at that time there is no app running on ios.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号