[lldb-dev] Temporary log channel...

Jim Ingham via lldb-dev lldb-dev at lists.llvm.org
Mon Apr 3 16:22:18 PDT 2017

BTW, Jason noticed that somebody had deleted the LIBLLDB_LOG_TEMPORARY log channel.  

Since it looks like one of those things that there's no use for, it's easy to think deleting it is a good cleanup.  But it's actually quite useful as a way to quickly tailor-make a particular set of logs.  Some of the logs (the expression log in particular) are pretty chatty and you just want a subset, and sometimes you want to pick just a few messages from several logs.  You can easily do that by just switching the log channel from whatever log it was to LIBLLDB_LOG_TEMPORARY, and then do "log enable lldb temp".  Then before you check in your code, you can just go revert all the instances of LLDB_LOG_TEMPORARY and you've left the original state untouched.


More information about the lldb-dev mailing list