nvim-gdb icon indicating copy to clipboard operation
nvim-gdb copied to clipboard

Running GdbStart auto quits on open.

Open Sammyalhashe opened this issue 4 years ago • 4 comments

For reference, this is the command I am running: :GdbStart gdb --args ./path/to/my/binary <args...>

You can tell something automatically happens, but the window immediately closes. I saw another issue where the person did not have gdb installed, I do. I could be misusing the plugin though.

Sammyalhashe avatar Jan 19 '22 21:01 Sammyalhashe

Is --args a legitimate option? I don't see it in the gdb manual. I usually just launch gdb binary, then run <args...> in the GDB CLI. Perhaps the error reporting should be improved in this case.

UPD: I've tested your scenario, and amazingly it works without errors. Could you please determine what's exactly happening by doing the following?

  • launch with the environment variable CI=1 nvim and collect the log files {nvimgdb,proxy,spy_ui}.log?
  • recording the terminal output with asciinema or script.

sakhnik avatar Jan 20 '22 06:01 sakhnik

I tried running what you said with CI=1 nvim, and it didn't generate any logfiles from what I've seen. I am pretty sure --args is legitimate (at least it's what I've been using to pass specific command args into the binary. I'll try and record later, but I can't really record what I'm working on right now for reasons that are out of my control.

Sammyalhashe avatar Feb 28 '22 19:02 Sammyalhashe

Take your time. I will only be available after the war.

sakhnik avatar Feb 28 '22 19:02 sakhnik

Oh my bad dude I'm sorry for the circumstances :( Be well.

Sammyalhashe avatar Feb 28 '22 19:02 Sammyalhashe

The latest revision should preserve the terminal in case of an unsuccessful launch attempt.

sakhnik avatar Oct 25 '22 15:10 sakhnik