I'm trying to debug eskk.vim. It has a asym_filter function. The function is invoked on each keypress when in a certain mode. The mode is entered by pressing C-j in Insert mode.
So, I set a breakpoint at the beginning (:breakadd here), enter Insert mode (a), press C-j, the debugger appears, I press c<Enter>, then I'm back in my buffer. From this point on no matter what I do, it doesn't stop at the breakpoint. Although I know it's set, and that that function gets executed. Am I missing something? Is the function in any way special?
UPD I noticed that it stops at a different place:
where I set a breakpoint (line 2051) -> where it stops (line 2167)
set (line 2078) -> stops (line 2167)
line 382 -> line 489
expectations (line 408) -> real life (line 489)
But still not sure if it stops more than once. I've gathered that info by restarting vim. nvim to be precise.
c, the script finishes, and the screen redraws. More importantly, I've just found out that for some reason it stops at a different place, see the updated question. – x-yuri Jul 29 '20 at 19:05nextorstep. Have you used those? They both run one command before returning to the debugger. (The difference is the former steps over function calls and the latter steps into them). Might be easier to get your bearings versuscontinue. – B Layer Jul 29 '20 at 22:49nextorstepthen, because I just wanted to confirm that it works as expected, stops after every keystroke. – x-yuri Jul 30 '20 at 00:36