Unable to Debug Ionic 2 RC0 Apps

In the previous Ionic 2 beta I was able to hit breakpoints and debug in Visual Studio Code. I was also able to see and set breakpoints in the source Typescript files in Chrome if I served from a command line without using VSCode.

Now in Ionc 2 RC0, when I create a new app I can’t see the source Typescript files in Chrome, and I can’t hit breakpoints in Visual Studio Code :frowning:

I have sourceMap enabled in tsconfig.json and sourceMaps enabled in VSCode’s launch.json.

My guess was it was something related to source map locations, but I’ve tried playing around with sourceRoot in tsconfig.json to no avail.

Any idea what could be wrong?

I suggest following this issue.

@rapropos Thanks, I hadn’t seen that.

I really hope we don’t have to wait for the next RC for this to be fixed though. If anyone knows of a workaround, please do share it!

1 Like

@cocowalla you can follow this

Put in your package.json "build": "ionic-app-scripts build --dev" under "scripts".
For me works, but only for providers. I don’t see my pages (views) listed in the source.

@proiertti thanks, that’s at least something helpful - more than Ionic is forthcoming with! :smirk: