ios - Xcode 6.2 debugger detaches from device on app crash -


xcode 6.2's debugger doesn't seem catching crash application. whenever crashes, popup says:

restore connection "agile lab's iphone 6 plus" , run "tag beta" again, or if "tag beta" still running, can attach selecting debug > attach process > tag beta.

i have breakpoints on , breakpoint "all exceptions." when go window > devices , hit "view device logs" shows this:

hardware model:      iphone7,1 os version:          iphone os 8.1.3 (12b466) kernel version:      darwin kernel version 14.0.0: mon jan 12 21:30:05 pst 2015; root:xnu-2783.3.26~3/release_arm64_t7000 date:                2015-03-31 15:12:15 -0400 time since snapshot: 1230 ms  free pages:                              2404 active pages:                            40050 inactive pages:                          18785 speculative pages:                       1206 throttled pages:                         0 purgeable pages:                         524 wired pages:                             147884 file-backed pages:                       11282 anonymous pages:                         48760 compressions:                            487127 decompressions:                          189679 compressor size:                         40449 uncompressed pages in compressor:        103077 page size:                               16384 largest process:   tag beta  processes    name       |            <uuid>                |     cpu time|     rpages|       purgeable| recent_max| lifetime_max| fds |  [reason]         | (state)  wirelessradioman <removed_for_privacy>                     0.036         295                0           -           889   50   [vm-pageshortage]   (daemon) (idle)  nsurlstoraged <removed_for_privacy>                     0.072         294                0           -           680   50   [vm-pageshortage]   (daemon) (idle)           seld <removed_for_privacy>                     0.052         218                0           -           995   50   [vm-pageshortage]   (daemon)  nsurlsessiond <removed_for_privacy>                     0.285         389                0           -          1326   50   [vm-pageshortage]   (daemon)          passd <removed_for_privacy>                     0.211         623                0           -          2400   50   [vm-pageshortage]   (daemon)           nfcd <removed_for_privacy>                     0.024         192                0           -           634   50   [vm-pageshortage]   (daemon)  biometrickitd <removed_for_privacy>                     0.084         232                0           -           720   50   [vm-pageshortage]   (daemon)    debugserver <removed_for_privacy>                     1.059         212                0           -           703   50   [vm-pageshortage]   (daemon)     mobilemail <removed_for_privacy>                     0.471        1277                0           -          3744   50   [vm-pageshortage]   (resume) (continuous)            lsd <removed_for_privacy>                     0.612         361                0           -          1136   50   [vm-pageshortage]   (daemon)           tccd <removed_for_privacy>                     0.146         281                0           -           968   50                       (daemon)       tag beta <removed_for_privacy>                    19.967       97247              524           -         55588  100                       (frontmost) (resume)           ptpd <removed_for_privacy>                     1.226         786                0           -          2356   50                       (daemon)       btserver <removed_for_privacy>                     0.303         483                0           -          1811   50                       (daemon)          wifid <removed_for_privacy>                     2.303         544                0           -          1786   50                       (daemon)      lockdownd <removed_for_privacy>                     1.481         279                0           -          1007   50                       (daemon)      locationd <removed_for_privacy>                    35.207        2182                0           -          5074   50                       (daemon)     discoveryd <removed_for_privacy>                     4.462         580                0           -          1232  100                       (daemon)   mediaserverd <removed_for_privacy>                    28.952       36002                0           -          5968   50                       (daemon)        imagent <removed_for_privacy>                     0.418         522                0           -          1531   50                       (daemon)  iaptransportd <removed_for_privacy>                     0.333         308                0           -           906   50                       (daemon) identityservices <removed_for_privacy>                     1.016         724                0           -          2027   50                       (daemon)       cfprefsd <removed_for_privacy>                     1.371         400                0           -           798   50                       (daemon)        syslogd <removed_for_privacy>                     1.376         233                0           -           449   50                       (daemon)         powerd <removed_for_privacy>                     0.608         215                0           -           514   50                       (daemon)           apsd <removed_for_privacy>                     1.141         733                0           -          2076   50                       (daemon)       networkd <removed_for_privacy>                     1.341         650                0           -          1747   50                       (daemon)            vmd <removed_for_privacy>                     0.086         550                0           -          2441   50                       (daemon)    dataaccessd <removed_for_privacy>                     0.571         853                0           -          2657   50                       (daemon)       sharingd <removed_for_privacy>                     0.360         719                0           -          2260   50                       (daemon)        searchd <removed_for_privacy>                     0.402         874                0           -          2886   50                       (daemon)   syslog_relay <removed_for_privacy>                     0.246         113                0           -           237   50                       (daemon)           geod <removed_for_privacy>                     1.152         868                0           -          1847   50                       (daemon)    springboard <removed_for_privacy>                    14.007        6886                0           -         28595   50                           backboardd <removed_for_privacy>                    63.774       13669              524           -          3673   50                       (daemon) usereventagent <removed_for_privacy>                    17.578         916                0           -          2959  100                       (daemon)      fseventsd <removed_for_privacy>                     0.689         387                0           -           629   50                       (daemon)        configd <removed_for_privacy>                     0.729         530                0           -          1544   50                       (daemon)   fairplayd.h2 <removed_for_privacy>                     0.530         149                0           -          1052   50                       (daemon)     assertiond <removed_for_privacy>                     0.319         296                0           -          1012   50                       (daemon)      distnoted <removed_for_privacy>                     0.078         186                0           -           321   50                       (daemon)  wirelessproxd <removed_for_privacy>                     0.068         248                0           -          1065   50                       (daemon)     aggregated <removed_for_privacy>                    23.356        1192                0           -          2375   50                       (daemon) discoveryd_helpe <removed_for_privacy>                     0.020         153                0           -           752   50                       (daemon) filecoordination <removed_for_privacy>                     0.030         224                0           -           898   50                       (daemon)     dtmobileis <removed_for_privacy>                     3.415         642                0         +25          2345   50                       (daemon)      gputoolsd <removed_for_privacy>                     0.285         948                0           -          2340   50                       (daemon)     commcenter <removed_for_privacy>                    30.132        1626                0           -          5021   50                       (daemon)        notifyd <removed_for_privacy>                     2.168         347                0           -           413   50                       (daemon)    reportcrash <removed_for_privacy>                     0.043         162                0           -           579   50                       (daemon)  **end** 

now if run app in production mode, , attach fabric, catch exception properly:

fatal exception: nsinvalidargumentexception -[tagfeedjourneytableviewcell previewimageview]: unrecognized selector sent instance 0x14271e9d0  thread : fatal exception: nsinvalidargumentexception 0  corefoundation                 0x000000018349a59c __exceptionpreprocess + 132 1  libobjc.a.dylib                0x0000000193bec0e4 objc_exception_throw + 60 2  corefoundation                 0x00000001834a1664 __methoddescriptionforselector 3  corefoundation                 0x000000018349e418 ___forwarding___ + 928 4  corefoundation                 0x00000001833a2b6c _cf_forwarding_prep_0 + 92 5  tag beta                       0x000000010012ca3c -[tagfeedviewcontroller tableview:didselectrowatindexpath:] (tagfeedviewcontroller.m:603) 6  uikit                          0x0000000187d71390 -[uitableview _selectrowatindexpath:animated:scrollposition:notifydelegate:] + 1280 7  uikit                          0x0000000187e2ecdc -[uitableview _userselectrowatpendingselectionindexpath:] + 276 8  uikit                          0x0000000187ccb564 _applyblocktocfarraycopiedtostack + 356 9  uikit                          0x0000000187c3ce78 _aftercacommithandler + 532 10 corefoundation                 0x0000000183452a50 __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 32 11 corefoundation                 0x000000018344f9dc __cfrunloopdoobservers + 360 12 corefoundation                 0x000000018344fdbc __cfrunlooprun + 836 13 corefoundation                 0x000000018337d0a4 cfrunlooprunspecific + 396 14 graphicsservices               0x000000018c5175a4 gseventrunmodal + 168 15 uikit                          0x0000000187caeaa4 uiapplicationmain + 1488 16 tag beta                       0x0000000100123f7c main (main.m:14) 17 libdyld.dylib                  0x000000019425aa08 start + 4 

while it's nice fabric able catch issue, it'd more helpful if debugger catch exception, see values, stack traces, etc. there setting don't have on or issue xcode?


Comments