2012-06-04 72 views
11
  • 此錯誤顯示僅ocassionally 在xcode的該錯誤顯示

exc_breakpoint(代碼= exc_i386_bpt,子碼=爲0x0)exc_breakpoint在調試中意味着什麼?

這是錯誤的屏幕截圖: enter image description here

獎勵:如果有人能告訴我如何「複製」錯誤信息,將不勝感激

在立即窗口日誌說:

2012-06-04 12:08:17.097 BadgerNew [866:17003]可達性標誌 狀態:-R ----- 1- networkStatusForFlags

圍繞着這個項目的代碼是非常好用的。我很驚訝,我們有一個錯誤。

+(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; 
} 
+0

您需要提供堆棧跟蹤來查看正在發生的事情。 – trojanfoe

+0

嗯,我認爲[NSURLConnection sendSynchronousRequest非常強大。當事情出錯時,它只會填充錯誤。我擔心的是,互聯網發生時並不能很好地發揮作用。 –

+0

我的問題是試圖引用我已經添加到項目,但沒有添加到目標包的文件。 – user

回答

1

問題是我在加載URL時中斷。這就是我遇到這個問題的原因。

它基本上說,你按折點。如果我只是在不破壞這個問題的情況下運行代碼,就不會出現。