Documentation for LLDB GUI

I recently played with LLDB gui function. (A link to stackoverflow about this feature is described here . My current lldb is lldb-320.4.156 )

So far, it seems very convenient, especially the ability to view local variables in the current stack frame. But is there any documentation (or tutorial) on how to use LLDB GUI mode?


Beyond : I have a few questions:

  • How to show the source code when switching to GUI mode. (If I don't stop at the breakpoint and type gui in LLDB, I can never find the source code.)
  • How to restart the program in GUI mode. (There is nowhere to print in GUI mode.)
  • Are there any colors in GUI mode? I notice that if you type lldb --help at the command line, lldb will tell you that you can invoke it with the --no-use-colors option. (In doing so, I never saw colors with normal lldb mode ...)
  • Is there a way to set breakpoints before running lldb ?
+5
source share
2 answers

The lldb GUI mode is a feature that Greg Clayton has done over the course of several weeks nights and weekends - it's a really cool hack. But he did not reach the level of product quality and there is no documentation that does not correspond to the command prompts that you can see using the built-in help system. The biggest omission, of course, is the lack of a console window in which you can enter arbitrary lldb commands, but adding the console panel as it was, everything became confusing. :)

I hope the interested developer picks up work in gui mode and adds these features. For people who cannot use the full IDE, it is very useful to have a user interface with a window in text mode when using the debugger.

+1
source

You do not have the answer to all your questions, but with regard to breakpoints, you can save all the "debug" configuration commands in a file, and then simply load this file:

 lldb -S <filename> 

Found this option here: fooobar.com/questions/1211135 / ...

0
source

Source: https://habr.com/ru/post/1211133/


All Articles