I just can’t figure.. I’ve seem people debugging by NSLog… isn’t there a IDE integrated way to check this out? like watchlist
this code is returning false, and I just want to see what is going on there..
if(sqlite3_step(selectstmt) == SQLITE_DONE)
thanks
It’s not done, that’s the problem. It either encountered an error or has more rows. If you want to trace it in the debugger, you need something to actually watch. For example:
Now you can actually break here, or watch the
resultvariable (although, given its automatic scope, watching it wouldn’t be extremely useful). Also, with any debugger, the more your code is compacted onto a single line, the harder it is for the debugger to reasonably let you know what’s going on. If you had broken out your code more, it’d be obvious where to stop the debugger: