How to develop/debug #2415
Replies: 1 comment 1 reply
-
I must admit that the template is getting harder and harder to work on if you're not used to it, and the fact that we have almost zero language feature with Go template (at least with VS Code) is not making it easier. I personally use this VS Code plugin and set I also usually mount the template file from source to the running If you need to log information you'll have to render them as comment on the template, for instance logging
You can also render a variable content as JSON, but be advised that will result in a faulty nginx conf with variables having a too large content (ie
Since this is a templating language there isn't a notion of breakpoint, but you can use Sprig's
To print the current scoped context, use
Maybe we could add a docker-gen function to help render commented out pretty JSON ? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was working on #1369 but not sure how to set breakpoints or log information specifically from the nginx.tmpl file.
Beta Was this translation helpful? Give feedback.
All reactions