capacitor
capacitor copied to clipboard
bug: Unable do debug Android app
Bug Report
I'm trying to debug my application with the chrome://inspect/#devices of Chrome, I always was able to user with Cordova but with Capacitor it give me those erros:

I have tried Ryaa solution and I was able to not get any errors:

But i'm still not able to use the mouse to interact with buttons, input, etc.
Capacitor Version
Capacitor Doctor
Latest Dependencies:
@capacitor/cli: 2.4.0
@capacitor/core: 2.4.0
@capacitor/android: 2.4.0
@capacitor/electron: 2.4.0
@capacitor/ios: 2.4.0
Installed Dependencies:
@capacitor/ios not installed
@capacitor/cli 2.4.0
@capacitor/core 2.4.0
@capacitor/android 2.4.0
@capacitor/electron not installed
[success] Android looking great!
Platform(s)
Android
Current Behavior
After I compile the project (just a blank capacitor ionic project) with npm run debug (ng build --eval-source-map --plugin ~build-customization-plugin.js, Ryaa solution), I compile to open in Android Studio with npx cap copy; npx open android and then I compile the debug version and install in my mobile phone samsung galaxy j5 sm500.
I open the app, connect usb in mobile and note, open chrome, open chrome://inspect/#devices, open inspect and I get the window with the app and console log, but i am unable of interacting with mouse in the components, etc.
Expected Behavior
Work just normal with interactive mode using mouse.
Code Reproduction
ionic start blank blank --capacitornpm run debug(ng build --eval-source-map --plugin ~build-customization-plugin.js, Ryaa solution)npx cap add androidnpx cap copynpx cap open android
Build android debug:
adb install path/to/app/debug.apk
Other Technical Details
npm --version output: 6.14.6
node --version output: v12.18.3
May be this can help:

Since Capacitor 4.1.0 you can run npx cap sync --inline and it will inline the source maps
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 Capacitor, please create a new issue and ensure the template is fully filled out.