Ionic 2 Typescript Debugging

Hello there!

I’m currently writing a project on Ionic 2 using Typescript and I can not debug my code. As far as I understand it is related to sourcemaps. I already found some similar issues but mostly they are resolved by editing webpack config file, but in the latest verion of default Ionic project browserify is used.

If I use “ionic serve” I can see proper folder and debug.

So my question is: How can I properly set up my project configuration to debug type script when my app is running on the device?

P.S. I’m using Visual Studio Code.

For sure, if you want to debug in Chrome, you can add “sourceMap”: true in tsconfig.json under “compilerOptions”.

But once it is on the device, no idea but would like to know too!