Saturday, July 2, 2011

Printing source-level scope variables at vim debugger prompt

I am using vim debugger for debugging vim scripts [BreakPts]. 
:BreakPts   //will create a new window and populates it with the list of vim functions available/loaded. 
We can click Enter on any function name to get the function definition and hit to set a break point on any line.

Now, the question is how to print the source file scope variables (variables with prefix s:) at debugger prompt.

let a:islocal //prints correctly as a: implies argument scope 
let s:islocal //displays undefined variable s:islocal even though the variable exists with scope s:

Please let me know if there exists a way to print s: variables at vim debugger prompt as i feel its crucial for debugging.

Thanks in advance,
Naga Kiran


--
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:

Post a Comment