如何在LLDB中的源代码调试模式和反汇编调试模式之间切换

问题描述 投票:3回答:1

如何在LLDB中的源代码调试模式和反汇编调试模式之间切换,例如“ Xcode-> Debug-> Debug Workflow-> Always show disassembly”菜单功能?

xcode lldb
1个回答
7
投票

这四个设置控制停止时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

将仅显示装配体。

热门问题
推荐问题
最新问题