简体   繁体   English

Xcode 断点变灰且不工作

[英]Xcode breakpoints greyed out and not working

I'm debugging an Objective-C app on the iPhone simulator.我正在 iPhone 模拟器上调试一个 Objective-C 应用程序。 The app compiles and works.该应用程序编译并运行。 Xcode settings previously let me set debugger breakpoints and have the debugger actually break. Xcode 设置以前让我设置调试器断点并让调试器实际中断。

Now, the breakpoints show up in grey and the debugger doesn't stop on any breakpoint.现在,断点显示为灰色,调试器不会在任何断点处停止。 Clicking on the breakpoint makes it light grey, but not blue like normal.单击断点使其呈浅灰色,但不像正常的蓝色。

Xcode 的这个屏幕截图显示了灰色的断点。

Can someone tell me which setting I need to revert to enable debugging again?有人能告诉我需要恢复哪个设置才能再次启用调试吗? Thanks.谢谢。

Open your Debug Area:打开你的调试区:

在此处输入图片说明

Enable the Breakpoint and make it highlighted.启用Breakpoint并使其突出显示。 BOOM!繁荣!

In the top menu, open Debug and click Activate breakpoints .在顶部菜单中,打开Debug并单击Activate breakpoints You could also try cmd + y .你也可以试试cmd + y

You should also be able to right click directly on the break point and choose "Enable Break Point" from the pop up menu.您还应该能够直接右键单击断点并从弹出菜单中选择“启用断点”。

OK...好的...

You have all your breakpoints generally disabled.您通常禁用所有断点。 This will gray out and ignore breakpoints even if they individually say they are enabled.即使断点单独说已启用,这也会变灰并忽略断点。

Go to the Debug menu in Xcode and select Activate Breakpoints .转到 Xcode 中的Debug 菜单并选择Activate Breakpoints

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM