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

时间:2015-10-25 18:10:08

标签: xcode lldb

如何在LLDB中切换源代码调试模式和反汇编调试模式,例如" Xcode-> Debug-> Debug Workflow->始终显示反汇编"菜单功能?

1 个答案:

答案 0 :(得分:5)

这四个设置控制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
(lldb) set set stop-line-count-before 0
(lldb) set set stop-line-count-after 0

仅显示装配。