Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode debug with iPhone app is slow and laggy
    text
    copied!<p>I am debugging an iPhone app I'm writing in Xcode, but sometimes now the debugger (which is GDB) slows a lot (doing a step-by-step debugging) and becomes unresponsive sometimes (the icons for stepping-in, stepping-over, stepping-out are not clickable), after sometimes it gets back to normal and continues and other times it stay like that forever or a message appears in console: "Timed out" (or something similar) and I can see my CPU from activity monitor going up to 90%. As a workaround I used to put a brekpoint after the line of code I was interested in and simply went with 'Continue' to 'Continue' (doing so it run perfectly fine and fast). Can this be code dependent? Is there a way I can debug the debugger (behaviour) ?</p> <p><strong>UPDATE</strong>: The complete message is</p> <pre><code>Timed out fetching data. Variable display may be inaccurate. </code></pre> <p>Googling for it i discovered that it happens when Xcode gdb is trying to look inside data formatters. Someone suggested to disable Run>Variable View>Use Data Formatter (in xcode 3.2, previous i guess it is Debug->Variables View->Enable Data Formatters) and it seems to work for me too (till now) So now I am asking: why? : D</p> <p><strong>UPDATE2</strong>: This solved the debugger from stopping on a specific part of the code but it stil hangs (with the same message) in another calling. It seems to me that this involves some CoreData API like <code>(NSEntityDescription*)entityForName: inManagedObjectContext:</code></p> <p><strong>UPDATE3</strong>: Would it be best to cache the NSEntityDescription instead of creating always a new one?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload