简体   繁体   English

断点在 Xcode 12.2 中不起作用

[英]Breakpoints are not working in Xcode 12.2

I have breakpoints set throughout my program, but Xcode appears to ignore them completely.我在整个程序中设置了断点,但 Xcode 似乎完全忽略了它们。

I wanted to create a new question, because this one was asked in 2008 and has nothing up-to-date.我想创建一个新问题,因为这个问题是在 2008 年提出的,并且没有任何最新信息。

Perhaps you've accidentally turned off the master breakpoint switch.也许您不小心关闭了主断点开关。

在此处输入图片说明

It should be bright blue, not gray.它应该是亮蓝色,而不是灰色。 Click it to toggle.单击它进行切换。

This happened to me for a very odd reason.这发生在我身上的原因很奇怪。 I added rich notifications to my app.我向我的应用程序添加了丰富的通知。 As I ran the app I was running it on one of their targets instead of the main app itself.当我运行应用程序时,我是在他们的目标之一上运行它,而不是主应用程序本身。 The orange arrow points to the main target.橙色箭头指向主要目标。 In a situation like this make sure you aren't on the wrong target (the ones above and below the orange arrow.在这种情况下,请确保您没有选择错误的目标(橙色箭头上方和下方的目标)。

在此处输入图片说明

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

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