开发者

How to have breakpoints in XCode4 work not once, but always - without restarting

I am using XCode4 to write a simple Mac app and my breakpoint only works once until i resta开发者_JS百科rt XCode. After a fresh start of XCode4 build and run triggers the breakpoint again as expected.

But if i then stop the app and build and run again it doesnt stop at the very same breakpoint. It continues execution just as if there was no breakpoint. After restarting XCode it works again. But only one time.

So the question is: What can be done to make it work without restarting XCode4.


I found the (simple) solution:

Even though the "Breakpoints"-Button in the toolbar was already active - deactivating and activating it again did the trick. After doing this i tested it about 4-5 times and it now works without restarting. Even after restarting XCode4 without re-activating Breakpoints it again.

Also: I am using XCode 4.0 at the moment. Maybe this is just a rare problem and perhaps it was fixed in 4.0.1 / 4.0.2 and does not happen anymore.

Anyway, should have tried this before writing the question ;)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜