You are not logged in.
Subj.
terminal.txt
...
To start debugging use `:Termdebug` or `:TermdebugCommand` followed by the
command name, for example: >
:Termdebug vim
This opens two windows:
gdb window A terminal window in which "gdb vim" is executed. Here you
can directly interact with gdb. The buffer name is "!gdb".
program window A terminal window for the executed program. When "run" is
used in gdb the program I/O will happen in this window, so
that it does not interfere with controlling gdb. The buffer
name is "gdb program".
The current window is used to show the source code. When gdb pauses the
source file location will be displayed, if possible. A sign is used to
highlight the current position, using highlight group debugPC.
...Last edited by Kirill Bugaev (2019-01-24 21:55:40)
Offline
I have tested it on old virtual machine and on Raspberry PI. It doesn't work in both cases. Maybe I compile not proper way. What do you think? I do `gcc -g <filename>`.
Last edited by Kirill Bugaev (2019-01-24 21:36:34)
Offline
What is the actual problem? What do you expect to see that you do not and where? What have you tried?
All the best,
-HG
Offline
I expect that vim will show source code in bottom window after `:Termdebug <program_name>` and walk around it when I `step` and `next` while debugging.
Last edited by Kirill Bugaev (2019-01-24 21:42:08)
Offline
Sorry, I am stupid as usual. I should open source file manually then vim follows it while debugging. It seems I have checked it before, it turns out that I was wrong.
Last edited by Kirill Bugaev (2019-01-24 22:03:43)
Offline
Runs pretty damn awesome for me (on real metal) - if the source isn't already open, you'll have to "run" it first to see some sources.
Try to "break main", SIGINT might get you into whatnot unsourced loop.
Offline
@seth, thanks. I will keep it in my mind.
Offline
> Sorry, I am stupid as usual. I should open source file manually then vim follows it while debugging. It seems I have checked it before, it turns out that I was wrong.
Your assumption here does not lead me to believe you're stupid. IMO, Termdebug should behave as you're expecting it to.
Offline
And how would you suggest anything would pull that magic trick?
Offline