llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[lldb-dap] How to specify the `lldb` option `--no-lldbinit` in vscode configuration?

Open allanleal opened this issue 1 year ago • 5 comments

Hello, after researching in different places, I could not find a way to specify the --no-lldbinit option in Visual Studio Code launch configuration.

The options available at Configuration Settings Reference do not seem to cover this case.

Thanks for your time.

allanleal avatar Aug 28 '25 09:08 allanleal

@llvm/issue-subscribers-lldb-dap

Author: Allan Leal (allanleal)

Hello, after researching in different places, I could not find a way to specify the `--no-lldbinit` option in Visual Studio Code launch configuration.

The options available at Configuration Settings Reference do not seem to cover this case.

Thanks for your time.

llvmbot avatar Aug 28 '25 14:08 llvmbot

This requires adding a new setting to lldb-dap. I hope that someone can pick up this task. It shouldn't be hard.

walter-erquinigo avatar Aug 28 '25 14:08 walter-erquinigo

This requires adding a new setting to lldb-dap. I hope that someone can pick up this task. It shouldn't be hard.

We're interested in this. I'll have my teammate add this if no one has picked it up yet

kusmour avatar Aug 28 '25 18:08 kusmour

Since we're initializing the SBDebugger in the initialize request handler, this likely need to be a CLI flag (around here https://github.com/llvm/llvm-project/blob/main/lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp#L46). The existing non-standard $__lldb_sourceInitFile field in the initialize request parameters isn't something we can easily add to the initialize request from the VSCode extension side of things.

ashgti avatar Aug 28 '25 18:08 ashgti

#156131

da-viper avatar Nov 20 '25 23:11 da-viper