Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: debug functions



Thanks, I'll check it out.

Pier Paolo Grassi


Il giorno ven 12 feb 2021 alle ore 04:21 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> ha scritto:
On Wed, Feb 10, 2021 at 3:04 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> I was afraid the function that call itself is the only way to go here, thanks for confirming

Actually, if you have the current development version of the shell you
can do this:

function_name () {
  function -T {
    # original function body here
  } "$@"
}

The trace will show '(anon)' instead of 'function_name', but otherwise
it's what you want.


Messages sorted by: Reverse Date, Date, Thread, Author