Node.js: show input as well as line:column when failed to compile
extempl opened this issue · comments
For those who don't know what is going on and why It wasn't able to compile your code - set a debugger line in the raise
method of babylon
and launch connect debugger to node
immediately after launching zero with --inspect
with something like this:
node --inspect=9229 ~/.nvm/versions/node/v12.7.0/bin/zero
As now it is impossible to understand where it failed, as you don't have input, just line and column.