I just found a workaround actually. If I take the code that's within the MAPBLOCK and put it into a separate method and call it within the MAPBLOCK, then I can put breakpoints in that method and it works.
I didn't know about that simulating breakpoints thing, but that's cool too. Thanks! Brendan On Thursday, June 16, 2016 at 1:05:46 PM UTC-6, Jens Alfke wrote: > > > On Jun 16, 2016, at 11:22 AM, Brendan Duddridge <[email protected] > <javascript:>> wrote: > > That's a bummer. Makes it difficult to debug view creation. I currently am > somewhere trying to treat an NSString as an NSDictionary and it's crashing. > So I'm trying to figure that out. My MAPBLOCK is quite complex. > > > One weird trick I know of, that I haven’t used myself, is that you can > simulate a breakpoint in code with the following: > > pthread_kill(pthread_self(), SIGINT); > > I.e. insert that where you want to stop, and the debugger should stop at > that line and then allow you to continue. > > From my notes it looks like you’ll need to include these headers: > #include <sys/sysctl.h> > #include <unistd.h> > #include <pthread.h> > > > —Jens > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/67b6a155-00a5-4f77-a5d9-a873504c1d1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
