如何防止每次运行后Xcode 4跳转到main.m文件? [英] How to prevent Xcode 4 from jumping to the main.m file after every Run?

查看:67
本文介绍了如何防止每次运行后Xcode 4跳转到main.m文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我按下cmd + R时,它都会将编辑器窗口跳转到main.m并突出显示一秒钟:

Every time I hit cmd+R it jumps the editor window to the main.m and highlights this for a fraction of a second:

int retVal = UIApplicationMain(argc, argv, nil, nil);

断点已禁用.真烦人有什么办法阻止这种情况吗?

Breakpoints disabled. It's very annoying. Any way to stop this?

推荐答案

通常,当我在某个断点不再存在时(我已删除代码)发生了这种情况.如果GDB发现无效的断点,它将在程序的开始处停止.

Usually this happens to me when I have a breakpoint at a position that no longer exists (code deleted i.e). GDB stops at the beginning of the program, if it finds an invalid breakpoint.

这似乎导致切换到xcode上的main.m.

This seems to cause the switching to main.m on xcode's part.

大多数情况下,我会删除所有断点并重新设置我真正需要的断点.无论如何,它们往往会堆积.这为我解决了这个问题.

Most often I delete all my breakpoints and start over setting the ones I really need. They tend to pile up anyway. This fixes the issue for me.

这篇关于如何防止每次运行后Xcode 4跳转到main.m文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆