- Questo spettacolo unico insetto ocassionally Il problema che xcode mostra
exc_breakpoint (codice = exc_i386_bpt, sottocodice = 0x0)Che cosa significa exc_breakpoint nel debugging?
Questa è la schermata del problema:
Bonus: se qualcuno può dirmi come "copiare" il messaggio di errore sarà apprezzato
Nella finestra immediata registro dice:
2012-06-04 12: 08: 17,097 BadgerNew [866: 17003] raggiungibilità Bandiera Stato: -R ----- networkStatusForFlags l-
Il codice attorno al progetto è praticamente infallibile. Sono molto sorpreso che abbiamo un bug lì.
+(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;
}
Dovrai fornire uno stacktrace per vedere cosa sta succedendo. – trojanfoe
Beh, penso che [NSURLConnection sendSynchronousRequest sia abbastanza robusto. Quando le cose vanno male, si limita a riempire l'errore. La mia preoccupazione è che Internet non funzionasse bene quando è successo. –
Il mio problema stava tentando di fare riferimento a un file che avevo aggiunto al progetto, ma non aggiunto al pacchetto di destinazione. – user