2 years ago
#27235

Duncan
How can I debug handlebars in node in VS Code?
I am trying to render a .hbs file
res.render('./reporting/review_email.hbs', { ..._data, layout: false });
however the .hbs file is not properly rendering because there is a property of the _data object which is either missing or incorrect. I know that this is the case because when I replace _data with a JSON object that is manually populated (as opposed to from the database), the template renders fine.
I am wondering how I could debug the issue in VSCode. Basically I want to know where the compiler encounters the problem.
node.js
debugging
visual-studio-code
handlebars.js
express-handlebars
0 Answers
Your Answer