XCode:在BreakPoint停留一段时间并继续前进?

时间:2022-09-13 20:43:49

So I have a bunch of break points set that help me track the progress of my iOS app -- and I have to do a continue (a three key shortcut) while paying attention to my app. Is there anyway to have the break points be stopped at, for, say 2 seconds and then automatically move on? It would be really, really helpful.

所以我设置了一堆断点来帮助我跟踪我的iOS应用程序的进度 - 我必须继续(三键快捷键),同时关注我的应用程序。无论如何要将断点停在,比如2秒,然后自动继续前进?这真的非常有用。

Thanks and Cheers.

谢谢和干杯。

1 个解决方案

#1


1  

Not that I'm aware of. But, another way to "track the progress" of your app is to use logging. One problem with logging however is you litter your code with logging that you want to rip out before shipping.

不是我知道的。但是,另一种“跟踪应用程序进度”的方法是使用日志记录。但是,日志记录存在的一个问题是,您希望在发送之前将日志记录丢失,从而丢弃您的代码。

One alternative is to have a logging functions/macros where you can condition out as levels and even turn off.

另一种方法是使用日志记录功能/宏,您可以将其作为级别调整甚至关闭。

Here's my related post on a logging class that does that:

这是我在日志记录类上发布的相关帖子:

What logging solutions to use while log-debugging objective-C code?

日志调试Objective-C代码时要使用哪些日志记录解决方案?

#1


1  

Not that I'm aware of. But, another way to "track the progress" of your app is to use logging. One problem with logging however is you litter your code with logging that you want to rip out before shipping.

不是我知道的。但是,另一种“跟踪应用程序进度”的方法是使用日志记录。但是,日志记录存在的一个问题是,您希望在发送之前将日志记录丢失,从而丢弃您的代码。

One alternative is to have a logging functions/macros where you can condition out as levels and even turn off.

另一种方法是使用日志记录功能/宏,您可以将其作为级别调整甚至关闭。

Here's my related post on a logging class that does that:

这是我在日志记录类上发布的相关帖子:

What logging solutions to use while log-debugging objective-C code?

日志调试Objective-C代码时要使用哪些日志记录解决方案?