vim-vebugger icon indicating copy to clipboard operation
vim-vebugger copied to clipboard

NInspect neovim

Open ColinRyan opened this issue 5 years ago • 4 comments

Hey, I'm trying to use vebugger with neovim and Nodejs. Whenever I run the command to start the debugger it opens a new split and then closes it.

Any ideas what I might be doing wrong and does this plugin have any logs or messages for debugging such issues? Thanks :)

ColinRyan avatar Dec 10 '18 14:12 ColinRyan

Do you have a breakpoint set? Is your application one that would stay open for a long period of time? It sounds like it is ending immediately...or it could be something else.

daniellmorris avatar Dec 13 '18 14:12 daniellmorris

So, I was able to get it working after. Turns out the problem wasn't that the debugger wasn't working, but it's that it won't work if the breakpoint is on the first line. I'm testing this with node.js. Any idea of what might cause that?

ColinRyan avatar Dec 20 '18 17:12 ColinRyan

Facing the same issue here, when debugging node apps inside vim, a terminal buffer quickly opens and closes.

TerminalWitchcraft avatar Jun 06 '19 20:06 TerminalWitchcraft

FYI I use these changes to vim-vebugger/autoload/vebugger.vim to see what nodejs does:

"Close the terminal buffer
function! s:f_debugger.closeTerminalBuffer() dict
  return
    if has_key(self,'terminalBuffer')
"Create a debugger and set it as the currently active debugger
function! vebugger#startDebugger(command)
    call vebugger#killDebugger()
    call s:f_debugger.showTerminalBuffer() 

    let s:debugger=vebugger#createDebugger(a:command)

nilsboy avatar Nov 19 '19 12:11 nilsboy