xcode exc_breakpoint 在调试中是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10876619/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:28:58  来源:igfitidea点击:

What does exc_breakpoint mean in debugging?

objective-ciosxcodecocoa-touch

提问by user4951

  • This bug show only ocassionally The bug in xcode shows
  • 此错误仅偶尔显示 xcode 中的错误显示

exc_breakpoint (code=exc_i386_bpt, subcode=0x0)

exc_breakpoint(代码=exc_i386_bpt,子代码=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

2012-06-04 12:08:17.097 BadgerNew [866:17003] 可达性标志状态:-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;
}

回答by user4951

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

问题是我在加载 URL 时中断了。这就是我遇到这个问题的原因。

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

它基本上是说你按下了断点。如果我只是运行代码而不破坏这个问题就永远不会出现。