Hi, On Fri, May 18, 2018 at 7:48 AM, Linwei <[email protected]> wrote:
> And I can use tty command to specify a terminal for NeoDebug: > > 1. start NeoDebug and open a new terminal in vim. > 2. use bash command tty to display the current tty file name. > 3. use tty /dev/pts/0 in NeoDebug > 4. run the process. > > [image: neodebug2] > <https://user-images.githubusercontent.com/3035071/40241153-d996d61e-5aec-11e8-8f8d-a2ff99f85622.png> > > See, I can debug my program in a vim terminal. > > for more information about tty command in gdb: > https://sourceware.org/gdb/onlinedocs/gdb/Input_002fOutput.html > > The only side effect is that I can't find a easy way to fetch tty filename > of a terminal buffer. have to type tty command in the terminal. > > > You can use term_start("NONE") to start a terminal without a process running in the terminal. You can use term_gettty(bufnr("%")) to get the tty for this terminal. You can then pass this terminal to GDB. - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
