iphone - XCode/GDB stops on my auto-continue breakpoints when debugging on Device -
i discovered (thanks helpful post) can use gdb commands create breakpoints log information gdb console, whether debugging on device or simulator. nslog, nicer in don't have wait console catch up, don't have annoying timestamps, , can turn them on/off @ run time via xcode breakpoint view).
very nice, , invested time figuring out how best log messages , variables together. (use gdb command po [nsstring stringwithformat: @"your message: %d %@",variable,[[object expression] description]]
) maximum versatility.
everything worked wonderfully in simulator. when got around device debugging, getting messages fine, gdb stopping on every breakpoint despite fact configured them auto-continue checking box in breakpoint view.
i tried adding "continue" commmand each breakpoint, , worked gdb started spewing information every breakpoint hit , telling me "continuing" after every line.
my questions:
- does happen you?
- can change auto-continue works on device
- can tell gdb less verbose , give me output print?
please help!!
david
i've run same behavior. turned out xcode had duplicated breakpoint @ intended line. perhaps there's bug left click adds hidden breakpoint rather disabling?
the solution this:
- select "breakpoint navigator" tab of navigator frame on left
- look duplicate breakpoints either manually or entering class name in search box @ bottom of navigator. (remember multiple project sections of list may both contain breakpoint same class)
- right-click on 1 , select edit figure out if it's continue or not.
- right-click on unwanted breakpoint , delete
Comments
Post a Comment