-
Notifications
You must be signed in to change notification settings - Fork 33
TypeScript source files cannot be debugged on a real mobile device in Android #22
Comments
This has been fixed in recent releases. Please bump the version of the gulp-browserify task to 2.0.0 and npm install again. |
Hi, |
Were you ever able to debug with source maps on android with chrome? It's my understanding that is not possible on android since dev tools cannot load source maps from https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/c54b6CxWhwU |
Hi,
|
Alright, I'll take a look and see what's up. |
As i said in the ionic-team/ionic-framework#7540 i have the same problem. #
|
Weird, when i simply use "ionic run android", the source maps are visible when i deploy on an android 4.4 Android device but not on a 6.0 one. |
Any update on this issue? |
This still appears broken with the new rc0 setup (I'm using the tabs starter with Crosswalk 2.1.0). First of all, no form of sourceMaps are enabled by default in the starter If you try to inline the sourcemaps instead via |
I'm facing the same issue :-(
|
Hey, Maybe this could help :http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2016/11/02/ionic-2-debugging-on-android-with-visual-studio-code.aspx I use the |
Hi,
packages:
and using Chrome 55.0.2883.95 the problem is gone, I can debug Typescript files.
Best, |
Those are old package. It might work with them, but it would be odd to go run older version just to get sourcemaps working. My ionic info output:
I can't get sourcemaps to work. |
For me the problem was that when you're remote debugging on an android device, Chrome debugger cannot access the source map file on the device. The solution/fix is to include the source map inline. To do this I:
This is to make the webpack to add source maps inline |
For anyone following it indeed works on RC4, but not RC3. Thanks. |
The solution of @ryaa works on RC5, but you have to keep the |
@ryaa solution works on my environment :
|
Hi, |
I have the same issue - no Typescript source maps when running on an emulator or a real device. I was on the latest Ionic 2 and hoped upgrading to Ionic 3 and the latest app-scripts would fix it. Unfortunately not. Changing Ionic losing source map functionality every other release or so has been a constant bugbear since Ionic 2 started :( It would be good to see this issue reopened and given some attention. |
i had issue wherein i cannot see the typescript files while debugging in device (ios) using safari or even while doing on browser (ionic:serve). this happened after i updated the @ionic/app-scripts version from 1.3.0 to > 1.3.0 possibly 1.3.6. i reverted it back to 1.3.0 and i can now see the ts files on debugging ios device through safari and also on browser (ionic:serve) |
I still see this issue on appscript ver 2.0.2. Is there a solution to this or can this issue be reopened please? This is my setup. local packages:
System:
|
Please update on this not abel to see ts file on real device facing lots. Regards. |
For me also debugging if not possible |
Just add below code in ionic 3 package.json file. "config": { It's working 100% . |
Thanks Ryaa its worked for ionic 3 as well just don't change the source map let it be true only. |
|
Hi,
I recently updated my Ionic 2 project written in TypeScript to the latest version (from beta 19 to beta 25), and I switched from webpack to browserify, too. While using webpack in beta 19, I was able to debug the project using either WebStorm and Chrome, or the Chrome Developer Tools inspecting the WebView in a real Android device. However, using browserify in beta 25, I cannot debug the project anymore on a real device. If the application is launched in Chrome or in an Android device with the live reload mode, the
source
folder containing my TypeScript source files appears in the Chrome Developer tools. But, if the application is launched in Android without live reload usingionic run android
, the WebView inspected from the DevTools does not include/show thesource
folder, so there is no way of placing breakpoints in TypeScript files.I posted this issue in the Ionic 2 forum without success. Is there a solution for this problem?
Thanks in advance,
Xavi
How to reproduce the problem:
$ ionic platform add android
$ ionic run android
chrome://inspect/#devices
source
folder is missing and TypeScript files cannot be debugged.The text was updated successfully, but these errors were encountered: