-
Notifications
You must be signed in to change notification settings - Fork 311
Debug is not supported on android device #610
Comments
I had an issue where I couldn't inspect either. Just got a blank white
screen. I deleted my android platform folder and did: ionic platform add
[email protected]. Solved the problem for me.
…On Thu, 29 Dec 2016, 13:42 Alex Ryltsov ***@***.***> wrote:
Short description of the problem:
Application running on the android device can't be debugged
What behavior are you expecting?
Debugging supported/working
*Steps to reproduce:*
1. Created new project from
https://github.com/driftyco/ionic-starter-super
2. run ionic run android
3. use chrome://inspect to debug
*Which @ionic/app-scripts version are you using?*
0.0.47 and 0.0.48
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#610>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AVoOP8ct8kdK9UMm_dTsEPFZe7QrzJk4ks5rM5yZgaJpZM4LXhvd>
.
|
on chrome://inspect my app occasionally is not shown. solution is to start adb (eg. "adb devices"), which starts a new daemon. If your device is listed your app should show up in chrome://inspect |
I don't think that the problem is related to cordova because the app starts and shows fine on the device. chrome://inspect also works fine, meaning that i see the app and can open dev tools however there is no typescript sources etc - see attached What is strange is that everything works fine in the desktop browser and when i build for ios using xcode. For the latter i see the sources and can debug. I also tried to add crosswalk with no luck. Could the problem be related to Chrome itself not displaying sources? Or may be |
I managed to find out what was causing the problem and how to solve it. 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 After this change everything seems to be working fine |
this is cause an error during compilation in my case see log:
|
does this work if you leave "sourceMap": true? |
yes
1.0 @ryaa could you attach your project example for debugging on android device? |
@jgw96 do you know about this issue with debugging on android device? see prev comments |
Unfortunately I can't share the current project sources I'm working on. However you should be able to follow the steps in my initial post and then make the changes that I described. |
your changes, like are not working ! anyways it's causing compilation error |
not sure how this setting can cause compilation error.. can you share your code? |
package.json `
` tsconfig.json `
` |
@ryaa |
@beylkhanovdamir Your config files that you posted look ok but this is not enough to determine what is wrong on your side. Can you share the entire project? About "sourceMap": true |
I have same issue @ryaa. Thank you. |
Short description of the problem:
Application running on the android device can't be debugged
What behavior are you expecting?
Debugging supported/working
Steps to reproduce:
ionic run android
Which @ionic/app-scripts version are you using?
0.0.47 and 0.0.48
The text was updated successfully, but these errors were encountered: