Just wasted half an hour in the debugger, trying to work out why I was getting an occasional glitch in a 3D OpenGL animation running in the iPhone simulator.
I finally decided to plug the iPhone in and debug it on that, thinking that a look at the disassembly of the object code might help (it compiles to Intel code for the simulator, ARM code for the actual phone, so simulator disassemblies are no use).
Turns out the glitch only happens in the simulator - on the phone it runs perfectly
Remember, kids: don't debug it until you've seen it fail on the target hardware
I finally decided to plug the iPhone in and debug it on that, thinking that a look at the disassembly of the object code might help (it compiles to Intel code for the simulator, ARM code for the actual phone, so simulator disassemblies are no use).
Turns out the glitch only happens in the simulator - on the phone it runs perfectly
Remember, kids: don't debug it until you've seen it fail on the target hardware
Comment