[Lldb-commits] [lldb] [lldb][TypeSystem] Enable colored AST dump (PR #86159)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 21 12:51:41 PDT 2024

JDevlieghere wrote:

> > What happens if you have colors disabled in your terminal? Does this do nothing? Or does it start inserting ANSI escape codes in plain text?
> Yea good question, was about to try this out. It does whatever clang's `ast-dump` would do if colors aren't turned off

That keys off of the output stream supporting colors, but LLDB also allows you to disable colors globally. Please also try `lldb --no-use-colors` and see if that behaves correctly (it might if we set the properties of the stream correctly). If it doesn't you'll need to read `debugger.GetUseColor()`. 


More information about the lldb-commits mailing list