-
Notifications
You must be signed in to change notification settings - Fork 20
How to debug an interactive command line application? #43
Comments
You have to run the application externally and attach to the process. See FAQ for more information. (Closing since implementing an internal |
actually, that's somehow possible… basically what would need to be done is to create a new window split, and in there run:
so the question would be how could I extend |
the best way to do so would be to have a layout setup that could just do that when starting the app (making sure when the restarting the debugging session the app gets killed etc…). or at least, make a little vim function that would issue the correct sequence of commands so that |
For the attach to work, Neovim has to be run as super user, which I don't think is a good idea. |
not necessarily, it works nice if you do:
before debugging your code (and setting it back is a good idea). |
I see... Didn't know about that. I just read this AskUbuntu answer about it. So it does seem much cleaner to not have the editor run as root, but now the whole system becomes vulnerable during that period, right? (Though the risk is probabilistically very low.) It's like a choice between two evils! 😄 Anyway, the more important thing is that I've stopped developing new features for this project. PRs are welcome! PS: I'm actually secretly looking for someone who might be really interested to take over the project! And just transfer repository ownership! |
ok, I figured out a way that's working fine:
where program is the target program you want to debug. But for better security, your link is actually providing a better alternative than disabling
So I'm just going to make a PR for updating the FAQ ☺
AFAICT, the project seems pretty complete, but I'm only starting to use it in a more thorough way, so who knows ☺ But happy to see you're still around and not leaving this project to dry.
I'd be happy to help, but I'm trying to focus on a few projects at a time, I got my hand full ATM ☺ |
I'm using lldb to debug an ncurses application, and because the debugged process' output is thrown in the
logs
buffer — and input looks like it's ignored, it's impossible to interact with the application.Would it be possible to have lldb.nvim have a
:term
like interface where it'd run the UI of that kind of application?The text was updated successfully, but these errors were encountered: