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

Xcode 如何在LLDB中切换源代码调试模式和反汇编调试模式,xcode,lldb,Xcode,Lldb,如何在LLDB中在源代码调试模式和反汇编调试模式之间切换,如“Xcode->debug->debug Workflow->Always show disassembly”菜单功能?这四个设置控制当您停止时LLDB显示源代码/汇编的方式: stop-disassembly-count -- The number of disassembly lines to show when displaying a stopped context. stop-disassembly-display

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

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

只显示汇编。

lldb源代码中有一个示例命令:如果您经常这样做,它可以在“方便汇编”模式和“方便源代码”模式之间切换。