Tony Mechelynck wrote:
On 09/04/11 05:22, Rostyslaw Lewyckyj wrote:
Would any of you be so kind as to send me pointers
on where, online, I can find any tutorials on vim
debug which contain full examples to illustrate
what is sketched in :h?
For example where do I write any of the commands
to define breakpoints, and then at a breakpoint
to dump values both from the file being processed
and the script being debugged. How do I change
any of the values of the file and script,
without terminating the debug run?
There are two ways to debug Vim:
- Vim debug mode, see :help debug-mode
You don't write the commands into a file, you type them at the keyboard.
- with an external debugger (e.g. gdb) see the debugger's documentation.
This is outside the scope of the present mailing list.
Best regards,
Tony.
Thank you Mr. Mechelynck. However:
I am on a Windows system and so no gdb. or other such debugger.
I am using GVIM and haven't figured out how to run straight vim
as suggested in :h.
Therefore if you can't offer any pointers to tutorials as requested
perhaps you can offer specific instructions for the following:
- I have a small script xxx.vim which I am developing and debugging
and on which I am learning the intricacies of vim scripting.
- I have a file testf.txt on which I am testing xxx.vim
- I load up testf.txt and now I'd like to do a debug run of
xxx.vim against testf.xxx
Ok. How do I do it?
I can start debug with :debug source xxx.vim . But how do I
now add breakpoints to the process? Using the s command is not
a viable option. I might just as well keep modifying xxx.vim
with various :echo commands to see what is happenning
Also the remarks about breakpoints in :h are quite cryptic
--
Rostyk
--
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