Closed KevinKelchen closed 2 years ago
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Describe the Bug TypeScript source maps are not present when debugging on an Android device/emulator.
Steps to Reproduce Steps to reproduce the behavior:
ionic start sourcemaps blank --type=angular
.ionic cordova prepare android
. SayY
to the prompt to install the Android platform.ionic cordova prepare android
again. It will download/install the Cordova plugins that are part of the template.ionic cordova run android
. This will build the app and deploy it to an Android emulator. You could also choose to deploy to a device by connecting a device configured for debugging and passing the--device
flag to this command.chrome://inspect/#devices
and inspect the Ionic app.Sources
useCmd + P
to search for the source filehome.page.ts
. It will not be found.Related Code If you are able to illustrate the bug with an example, please provide a sample application via an online code collaborator such as StackBlitz, or GitHub.
Expected Behavior I expected the TypeScript source files to be present and debuggable with breakpoints in the Chrome DevTools.
Additional Context This is the same issue as #15152 which has since been closed and locked. While the OP of that issue decided to use Ionic DevApp as a workaround, our application uses a number of additional and different Cordova plugins that make using DevApp unsuitable. I would expect the browser dev tools to work like they have previously in Ionic 3 and like they currently do with iOS.