Monday, May 23, 2011

Debugging numbered functions (or anonymous dictionary functions)

Vim help mentions:
If you get an error for a numbered function, you can find out what it is with
a trick.  Assuming the function is 42, the command is: >
        :function {42}

Is there a better way to debug these functions, i.e., like setting a breakpoint on them. The numbers change everytime the functions are sourced, and setting a breakpoint based on a file/linenum seems to be off as well (I'm not sure if that is because of comment lines)

Any help will be appreciated.

Thanks much!
Hari

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: