xcode - 如何在LLDB中切换源代码 Debug模式和反汇编 Debug模式

标签 xcode lldb

如何在LLDB中切换源代码 Debug模式和反汇编 Debug模式,如“Xcode->调试->调试工作流程->始终显示反汇编”菜单功能?

最佳答案

这四个设置控制 lldb 在停止时如何显示源代码/程序集:

  stop-disassembly-count   -- The number of disassembly lines to show when displaying a stopped context.
  stop-disassembly-display -- Control when to display disassembly when displaying a stopped context.
  stop-line-count-after    -- The number of sources lines to display that come after the current source line when displaying a stopped context.
  stop-line-count-before   -- The number of sources lines to display that come before the current source line when displaying a stopped context.

例如,在 LLDB 提示符处:

set set stop-disassembly-display always
set set stop-line-count-before 0
set set stop-line-count-after 0

仅显示程序集。

关于xcode - 如何在LLDB中切换源代码 Debug模式和反汇编 Debug模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33333165/

相关文章:

objective-c - Xcode 8.0 beta 6,隐式转换丢失整数精度: 'NSInteger' (aka 'long' ) to 'CGSWindow' (aka 'int' )

objective-c - 关于 xcode 控制台文本颜色和背景

xcode - xcode7 调试器发生了什么变化,我无法再使用 "po"/Swift 查看变量

xcode - Xcode控制台中的 "Some"关键字是什么意思?

c++ - lldb - 在抛出 C++ 异常之前中断

ios - 我需要使用 Xcode 的 Image.xcassets 新图像集和新 OSX 图标吗

xcode - swift 2 arc4random

ios - 3.5 英寸和 4 英寸的不同约束

c++ - lldb 不会打印终端中的所有字符

breakpoints - Lldb : Setting conditional breakpoint with string equality as condition