Skip to content
Discussion options

You must be logged in to vote

After digging around the documentation a little bit, I stumbled onto the wiki for Debugger Configurations. It links to the docs for lldb-vscode Launch Configuration Settings.

I was able to figure out how to redirect input using plain lldb. After futzing with my languages.toml, I was able to map the commands correctly. Here is what I landed on:

[[language.debugger.templates]]
name = "binary with input"
request = "launch"
completion = [ { name = "binary", completion = "filename" }, { name = "Absolute Path to Input File", completion = "filename"} ]
program = "{0}"
args = { console = "internalConsole", program = "{0}", preRunCommands = ["settings set target.input-path {1}"] }

I am brand spank…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bencornia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant