-
I am able to debug c just fine in helix. However, I haven't been able to figure out how to pass input to the binary at the same time as debugging. For example, when running from the command line I typically would do: How would I recreate this in helix. I am assuming I need to create a custom language debugger template in languages.toml. Thanks for any suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 spanking new to both helix and lldb, so it was a baptism by fire. Fortunately, everything is working smoothly now! |
Beta Was this translation helpful? Give feedback.
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:
I am brand spank…