Closed Aster89 closed 1 year ago
Thanks for the report. This doesn't entirely surprise me (as the run-to-cursor implementation is quite hacky).
As regards Sample project works?, I've tried opening the test_c.cpp file with the minimal vimrc for vimspector, but upon starting the debugger I get
probably you have to build the binary first
I can't repro this. Is it still an issue?
I can't repro this. Is it still an issue?
Yes, with precisely the repro steps I provided. I've tried again (now Included patches: 1-1420
and I'm on 6c346fb) and recorded via q. Here's the content of the register (I've manually changed Enter to a literal ^M
and the likes):
:VimspectorBreakpoints^Mi^M21^M^M^M^Mi^M25^M^M^M^M^Wk:call vimspector#Launch()^M3^M25gg:call vimspector#RunToCursor()^M:^P^M:call vimspector#Continue()^M
ah ok thanks, I can repro. not sure what I was doing yesterday.
SO there are 2 issues here:
I have a fix for this and will see how badly the tests break :p
Description
Say the debugger is paused on line 10 (e.g. on a breakpoint) and that a breakpoint is at line 20. Calling
<Plug>VimspectorRunToCursor
once on line 20 does nothing (apparently) calling it a second time makes the program continue to line 20, but also removes the breakpoint.Works in vim?
Reproducable in Vim
Works with clean config?
Yes
Sample project works?
Not reproducable with sample project
Minimal Reproduction
List of steps to reproduce:
vim ---clean Nu /path/to/vimspector/support/minimal_vimrc a_file_of_your_choice
(I've tried with C++ file, but I think it's irrelevant)<Plug>VimspectorRunToCursor
-> nothing will happen<Plug>VimspectorRunToCursor
again -> the program will get there but the breakpoint is goneExpected Behaviour
Program should continue to that line upon the first call to
<Plug>VimspectorRunToCursor
.Actual Behaviour
The program doesn't continue upon the first call to
<Plug>VimspectorRunToCursor
; it does so on the second call, but also removes the breakpoint.Additional information
As regards Sample project works?, I've tried opening the
test_c.cpp
file with the minimal vimrc for vimspector, but upon starting the debugger I getand here's the log:
Installation Type
Plugin Manager (git clone)
Vimspector version
4deaffdec34508621934fa4532748ee9deb1f55c
Debug Info
No response
Log file
No response
Vim version
Python version
No response
Neovim diagnostics
No response
Operating System
up-to-date ArchLinux
Declaration