断点调试iOS的正确用法? [英] Breakpoint Debug proper usage iOS?

查看:181
本文介绍了断点调试iOS的正确用法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了断点。我使用命令⌥⌘单击断点。

I put breakpoint. I used command ⌥⌘-click on breakpoint.

它向我显示了以下选项。

It showed me following options.

我如何使用这些选项。

1. AppleScript
2. Capture GPU Frame
3. Debugger Command
4. Log Message
5. Shell Command
6. Sound

还有其他选择

1. Condition
2. Ignore
3. Action
4. Options

这些选项是什么。它们如何工作?

What are these options. How are they working?

推荐答案

您可以阅读有关断点选项的详细教程: https://www.bignerdranch.com/blog/xcode-breakpoint-wizardry/

You can read this detailed tutorial on breakpoints options: https://www.bignerdranch.com/blog/xcode-breakpoint-wizardry/

简短摘要:


  • 条件:如果条件评估为true,则会触发断点。

  • 忽略是自我解释。就像忽略前两次传递。

  • 操作:如果触发断点该怎么办。

  • 选项:如果不想停止则设置在XCode上的此断点上

  • Condition: if condition evaluated to true, breakpoint is triggered.
  • Ignore is self explaining. Like "ignore first 2 passes".
  • Action: what to do if breakpoint is triggered.
  • Options: set if you do not want to stop on this breakpoint in XCode

对于操作字段,您可以选择触发断点时要执行的操作。可能的值为:

For action field you can choose what to do when breakpoint is triggered. Possible values is:


  • AppleScript:执行输入的AppleScript代码

  • 捕获GPU框架:捕获OpenGL框架内容

  • 调试器命令:执行输入的GDB命令

  • 日志消息:将输入的消息记录到控制台

  • Shell命令:执行输入的shell命令

  • 声音:播放声音文件

  • AppleScript: execute entered AppleScript code
  • Capture GPU frame: capture OpenGL frame contents
  • Debugger Command: execute entered GDB command
  • Log Message: log entered message to console
  • Shell Command: execute entered shell command
  • Sound: play a sound file

这篇关于断点调试iOS的正确用法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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