# How to debug using ts source files on Android in Ionic 3

**URL:** <https://forum.ionicframework.com/t/how-to-debug-using-ts-source-files-on-android-in-ionic-3/136052>\
**Category:** ionic-v3\
**Created:** [July 24, 2018, 8:05am UTC](https://forum.ionicframework.com/t/how-to-debug-using-ts-source-files-on-android-in-ionic-3/136052 "2018-07-24T08:05:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterjc](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@peterjc](https://forum.ionicframework.com/u/peterjc)\
**Post date:** [July 24, 2018, 8:05am UTC](https://forum.ionicframework.com/t/how-to-debug-using-ts-source-files-on-android-in-ionic-3/136052/1 "2018-07-24T08:05:28Z")

</div>

Hi, I’ve have just started again doing some dev here. I am sure I use to be able to do this, but now, when I run my app on my Android be running. I just create a starter project, added Android platform, and launch via

```auto
ionic cordova run android -l

```

I open Chrome://inspect etc, I can see the app, but no ts files (only the bundled and other js files)

My current setup is

```auto
$ ionic info

cli packages: (C:\Users\pchapman\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms : android 6.2.3
    Ionic Framework : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.0.2
    Node : v8.11.3
    npm : 5.6.0
    OS : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\pchapman\AppData\Local\Android\sdk

Misc:

    backend : legacy

```

Can anyone help me here?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![peterjc](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@peterjc](https://forum.ionicframework.com/u/peterjc)\
**Post date:** [July 24, 2018, 1:54pm UTC](https://forum.ionicframework.com/t/how-to-debug-using-ts-source-files-on-android-in-ionic-3/136052/2 "2018-07-24T13:54:49Z")

</div>

For me, the answer [here](https://stackoverflow.com/questions/43326045/how-to-debug-ts-files-of-ionic-2-project-in-chrome-inspect-devices) worked, ie I had to add

```auto
"config": {
    "ionic_bundler": "webpack",
    "ionic_source_map_type": "#inline-source-map"
  }

```

to my `package.json`. I wonder if this should be in the default project template file?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:28pm UTC](https://forum.ionicframework.com/t/how-to-debug-using-ts-source-files-on-android-in-ionic-3/136052/3 "2021-07-19T21:28:55Z")

</div>

Closed on July 19, 2021, 9:28pm UTC


