Friday, September 9, 2016

Re: Recognize function name from function number

On Thursday, September 8, 2016 at 5:19:24 PM UTC+2, Luc Hermitte wrote:
> Hi,
>
> > I have some called functions from each others and an error occurs at
> > call of one of them :
> >
> > Error detected while processing function
> > 347[10]..342[4]..348[4]..346:
> >
> > How can I know the name out of the number of function that causes
> > error ?
>
> It looks like functions defined on dictionaries (1), instead on functions added later on the dictionary (2).
> (1) :function dict.fname()
> (2) :function s:fname() dict
> :let dict.fname = function('fname')
>
> If not the name, you can access the function definition with
> :function {42}
>
> See :h anonymous-function
>
> I've stopped to use them in order to be able to decode the backtrace in my logging framework.
>
> HTH,
>
> --
> Luc Hermitte

Thank you Sir, I will look at that.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: