Skip to content

[lldb-dap] Enabling LLDB logging to a file does not work in lldb-dap #78334

@ashgti

Description

@ashgti

If you are using lldb/tools/lldb-dap and you try to enable logging to a file using something like:

lldb> log enable -f /tmp/my_log.txt llvm api

The file is never created and logging is not configured. Instead the logs are sent over the DAP as Console messages which may overwhelm the DAP with a large amount of logging, see

g_dap.SendOutput(OutputType::Console, llvm::StringRef{buf});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions