http://inlehmansterms.net/2014/10/31/debugging-vim/
http://vimdoc.sourceforge.net/htmldoc/repeat.html#debug-mode ( or :h debug-mode )
I recall there being a few gotchas last time I used debug mode and they're mentioned in the doc, but unfortunately I don't quite remember what they were.
http://inlehmansterms.net/2014/10/31/debugging-vim/
http://vimdoc.sourceforge.net/htmldoc/repeat.html#debug-mode ( or :h debug-mode )
I recall there being a few gotchas last time I used debug mode and they're mentioned in the doc, but unfortunately I don't quite remember what they were.