Debug hook parameters

Hello, is there a way to debug hooks parameters?

I would like to print/debug the argument they have been called with to understand the nature of the parameters.

You should be able to echo it to the *debug* buffer, like any other value:

echo -debug %val{hook_param}
1 Like

Thank you! I was confused by documentation: BufClose buffer name, I thought it’s 2 different argument, but then suddenly realized it’s just one and everything fell into the right place.