में ईजेएस टेम्पलेट्स को डीबग करने के लिए कैसे मैं PHP टेम्पलेट्स को नोड.जेएस/एक्सप्रेस में ईजेएस पर परिवर्तित कर रहा हूं। टेम्पलेट फाइलें कुछ जटिल हैं, इसलिए उन्हें डिबग करना आसान नहीं है। नोड मुझे डीबगिंग के लिए कोई उपयोगी जानकारी नहीं दे रहा है, इसलिए यह इस काम को असंभव बना रहा है। यहां एक नमूना त्रुटि संदेश है।नोड/एक्सप्रेस
SyntaxError: Unexpected string in "app/views/profile/index.ejs"
at Object.Function (<anonymous>)
at exports.compile (/Users/Gavin/Web/node_modules/ejs/lib/ejs.js:237:14)
at Object.exports.render (/Users/Gavin/Web/node_modules/ejs/lib/ejs.js:284:10)
at View.exports.renderFile [as engine] (/Users/Gavin/Web/node_modules/ejs/lib/ejs.js:318:20)
at View.render (/Users/Gavin/Web/node_modules/express/lib/view.js:76:8)
at Function.app.render (/Users/Gavin/Web/node_modules/express/lib/application.js:502:10)
at ServerResponse.res.render (/Users/Gavin/Web/node_modules/express/lib/response.js:777:7)
at Object.exports.profile_index [as handle] (/Users/Gavin/Web/app/controllers/routes/profile.js:72:6)
at next_layer (/Users/Gavin/Web/node_modules/express/lib/router/route.js:103:13)
at Object.exports.verify_user [as handle] (/Users/Gavin/Web/app/controllers/routes/account.js:305:10)
ऐसे अस्पष्ट त्रुटि संदेश का स्रोत ढूंढना बेहद कठिन है। क्या ईजेएस फाइलों को डीबग करने का कोई आसान तरीका है?