Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CLI Line Numbers

Unless I've installed it wrongly (which is quite possible; it didn't go smoothly), the CLI reports runtime line numbers against the minified and transpiled code, rather than against the original source code. This makes debugging difficult because even the file names are not necessarily relevant.

Peter McLennan
Gondwana Software
Best Answer
0 Votes
2 REPLIES 2

Is anyone else suffering from this problem?

 

It's easy to test:create an index.js something like this:







console.log("line 10");

For me, the CLI log reports that the message is written at line 2, rather than 10. This is because it's reporting against the minified code. The problem is worse if 'import' is used, because all files are rolled into index.js.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

That is (was?) the case in the Fibit Studio too, I don't know if it was every fixed.

Best Answer
0 Votes