ios development - understanding xcode console output -


when log dictionary example output this:

2013-04-18 16:24:45.905 pathfindertest[9650:c07] -[__nscfdictionary length]: unrecognized selector sent instance 0x9271ee0 2013-04-18 16:24:45.912 pathfindertest[9650:c07] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[__nscfdictionary length]: unrecognized selector sent instance 0x9271ee0' *** first throw call stack: (0x1c91012 0x10cee7e 0x1d1c4bd 0x1c80bbc 0x1c8094e 0x1c07c36 0x1c5113c 0x1cb64b6 0xb3c60a 0xb3c57c 0x2af7 0x28f8 0xf41c7 0xf4232 0x433d5 0x4376f 0x43905 0x4c917 0x25a5 0x10157 0x10747 0x1194b 0x22cb5 0x23beb 0x15698 0x1becdf9 0x1becad0 0x1c06bf5 0x1c06962 0x1c37bb6 0x1c36f44 0x1c36e1b 0x1117a 0x12ffc 0x22dd 0x2205) libc++abi.dylib: terminate called throwing exception (lldb)  

now know error , in file. if didn't? i'm used java points correct file , corresponding line number. not that line problem direction.

if run app using debugger, when encounter exception, xcode debugger show stack trace. point @ exact file , line in app caused problem.

if isn't happening following in xcode:

  • view breakpoints pane on left side of xcode
  • tap + button in bottom left corner , choose "add exception breakpoint"
  • a new breakpoint appears along dialog. accept defaults , click on done
  • right-click on exception , select "move breakpoint to" , choose "user"

now debug app , cause exception. should useful stack trace in debugger whenever encounter exception.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -