On 26/09/09 21:08, nagki wrote:
>
> Hi,
>
> 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
(untested)
If
:echo s:islocal
(with ":echo" rather than ":let") also fails, then try
:echo <SNR>27_islocal
and if even that fails,
:exe "echo \<SNR>27_islocal"
where (in both cases) 27 is the number of the sourced script, as shown
by the ":scriptnames" command.
Best regards,
Tony.
--
"I was gratified to be able to answer promptly, and I did. I said I
didn't know."
-- Mark Twain
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---