Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does exc_breakpoint mean in debugging? [duplicate]

  • This bug show only ocassionally The bug in xcode shows

exc_breakpoint (code=exc_i386_bpt, subcode=0x0)

This is the screenshot of the bug: enter image description here

Bonus: If anyone can tell me how to "copy" the error message it'll be appreciated

In immediate window the log says:

2012-06-04 12:08:17.097 BadgerNew[866:17003] Reachability Flag Status:-R -----l- networkStatusForFlags

The code around the project is pretty much fool proof. I am very surprised that we have a bug there.

+(NSString *) Json_StringGetter:(NSString *) URL{
    CM(@"Json string getter");
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:URL]];
    DLog(@"request:%@",request);
    PO(URL);
    PO(request);

    __block NSError *error=nil;
    __block NSURLResponse *urlresponse=nil;
    __block NSData *response = nil;
    __block NSString *json_string=nil;

    //[Tools computeTimeWithName:FUNC block:^{
        response= [NSURLConnection sendSynchronousRequest:request returningResponse:&urlresponse error:&error];
        json_string = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];
    //}];

    if (error) {
        DLog(@"error at jsonparser:%@",urlresponse);
        DLog(@"error at jsonparser:%@",error);
        DLog(@"I break points here");
    }

    return json_string;
}
like image 811
user4951 Avatar asked Jun 04 '12 05:06

user4951


1 Answers

The issue is I break when the URL is loading. That's why I got this issue.

It basically says that you press break point. If I just run the code without breaking this issue never show up.

like image 66
user4951 Avatar answered Oct 31 '22 13:10

user4951