I'd like to use the same keyboard shortcuts for step-debugging in CGDB that Visual Studio uses by default. The main three for me are step over (F10), step in (F11), and step out (SHIFT+F11). I use Ubuntu and have disabled the F10 (menu) and F11 (fullscreen) gnome terminal shortcuts. I can then successfully run CGDB with the following ~/.cgdb/cgdbrc
file:
map <F10> :next<CR> # (step over)
map <F11> :step<CR> # (step in)
I have not though been able to succeed with a mapping of SHIFT+F11. I tried both:
map <S-F11> :finish<CR> # (step out)
...and:
map <S-<F11>> :finish<CR> # (step out)
...with no luck. A page on Vim fast keycodes here mentions "terminal keycode", and I used cat
to find that the SHIFT+F11 code is ^[[23;2~
, but I've not been able to work out how to use that within my cgdbrc file. Can anyone help?