[cfe-dev] [llvm-dev] Printing while developing on LLVM/Clang code

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 11 08:01:48 PST 2021


dump functions, as Matt mentioned, are probably the immediate go-to.
Otherwise if you want to improve 'print <expr>' support, it probably
involves writing pretty printers like/in here:
llvm/utils/lldbDataFormatters.py

On Thu, Feb 11, 2021 at 4:20 AM Deep Majumder via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi everyone,
> I have found that `print <expr>` often doesn't work while running a debug build of clang in lldb. So I have to resort to print statements. Since <iostream> is not used inside LLVM/Clang code, I have to include it in manually and remember to remove it before committing. Is there a better way to do this, either in lldb or insert print statements?
> Warm regards,
> Deep
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the cfe-dev mailing list