How to debug code in ionic 2

In ionic 1 I debugged my code via Chrome and got always an error with the line number in the appropriate file.

In ionic 2 I’m always getting a huge line numerb in the app.bundle.js file, but this is not very useful for me to quickl debug my errors.

Is there a better way to debug?

Thank you!

The way to go is to use sourcemaps, though idk if it works in the current config of webpack, try turning on sourcemaps in the tsconfig.json, if it isn’t showing your ES6 code in the browser then you should fill an issue for this in the ionic repo, though i suggest you use the ionic issue helper: Ionic issue form