Jinja consol.log

i am pretty new to ERP next and i am trying to make a new print format using the jinja
option available in ERP next
but the problem i am running into is that i cannot log variables to the console
can somone help me
i want to be able to print to the console so i can check what variable cantina’s what

Just put your {{ variable }} in a p tag to see what it holds.

yes but how can i know what properties dos the doc object holds
i want something like
console.log(doc)

thank you @Yamen_Zakhour

In your print format,
For custom print formats add your JS to your HTML otherwise in the print format builder (not the new designer) add the JS using an HTML Block.

<script></script>

For JS to run, open your print in Web View

Put this in your print format

{{doc | json}}