What is the proper way to debug template scripts?

Hi, is there any way to get more information about syntax errors and so on in template scripts? I get it compiled in one string in debug version under cordova, and dont understand what to do with
"Uncaught SyntaxError: Unexpected token ‘;’,
“Uncaught (in promise) TypeError: t[n] is not a function”, source: https://localhost/framework7/framework7-bundle.min.js (13)

I usually just open framework7.bundle.min.js, locate the error, and type in console.log(error.stack) at the point of the error.

Error.stack shows a stack trace of the error, and helps me see where the point of the error is from my own code.