Add debugf function

It would be very convenient to have a debugf function, where the output isn’t cached like errorf or warnf, but it would still be highlighted like their output. Debug output would be suppressed unless the -v verbose flag is given. Output would be prefixed by template filename and line if possible.

I would also love to see this function and having both file name and line number would be incredibly useful.

1 Like

https://github.com/gohugoio/hugo/issues/11739

1 Like