Why does GDB debugger constantly freeze Xcode 4?

梦想与她 提交于 2019-12-05 17:03:54

Try to have terminal open, AND IN THE FOREGROUND (ON TOP OF XCODE) when the program builds and begins running.

Also, if possible, try downloading xcode 4.1. This seemed to fix this annoying problem for good, AND I can actually use the debugger again !

I am working on a video processing app as well, and this is exactly the symptoms i am having. it works in waves. I don't know what the reason for this is, but i am slowly gathering facts to solve it:

  • turning off GDB in Scheme settings removes the issue
  • with GDB ON, "wait for app to launch" seems to solve the issue (need more testing)
  • after getting into "stable freeze" mode, meaning, beachball on run every single time, Committing to repository removes the issue (??)
  • restoring device as a new device to latest iOS through iTunes solves the issue

all of the above except turning off GDB only solves the issue temporary - it comes back after few more runs...

I had this problem once before and it started happening again all day today. I've tried everything from cleaning the project to restart both my iPad and MacBook Pro and even swapping a different cable.

What worked the two times this has happened: I cleaned the project, changed the build target, and ran it on the iPhone simulator, iPad simulator. Then returned to the original (main) build target (the actual app) and ran that on the iPhone and iPad simulators. All of those ran correctly, so I finally ran the original app on the iPad device and it worked and has kept working.

Seems like a combination of cleaning the project, changing build targets, and running on the simulator is flushing something out that previously caused XCode and my iPad device to hang and freeze.

Good luck

In my case it was the wrong Code Signing Identity

Minimizing "NSLog" statements within loops helps for applications using OpenGL ES, OpenCV, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!