mozilla / geckoview

GeckoView is a set of components for embedding Gecko in Android apps
https://geckoview.dev
418 stars 47 forks source link

How do I debug GeckoView on android just like I debug WebView ? #231

Open chenqinggang001 opened 10 months ago

jackyzy823 commented 9 months ago

Take "GeckoView Example" as an example: In "GeckoView Example" : settings -> enable "remote debugging". In Firefox desktop : open "about:debugging" , find the android device and connect. (You need connect the android device to the desktop pc and enable developer mode)

Ref:

  1. About debugging: https://firefox-source-docs.mozilla.org/devtools-user/about_colon_debugging/index.html
  2. Programmatically enable "remote debugging": https://firefox-source-docs.mozilla.org/mobile/android/geckoview/consumer/automation.html#configuring-geckoview