DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • How To Integrate Microsoft Team With Cypress Cloud
  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • MLOps: Definition, Importance, and Implementation
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends

Trending

  • How To Integrate Microsoft Team With Cypress Cloud
  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • MLOps: Definition, Importance, and Implementation
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Debugging Android Cordova/Phonegap Apps with Chrome

Debugging Android Cordova/Phonegap Apps with Chrome

Gonzalo Ayuso user avatar by
Gonzalo Ayuso
·
Aug. 06, 14 · Interview
Like (17)
Save
Tweet
Share
22.98K Views

Join the DZone community and get the full member experience.

Join For Free

maybe this post is a littleobvious but i’ve spoken about it with various developers who don’t know it. it really improves the development process for cordova/phonegap apps on android, at least for me.

with android we can see the log with “adb logcat” but it’s a nightmare. huge amount of information about our app and also about the operating system. if we’re grep ninjas we can handle it, but as well as i’m not a ninja i prefer another solution. do you know “chrome://inspect/”? if not, have a look as soon as possible to this tool. we can see the browser’s console of our android in our desktop browser. we only need to enable “usb remote debugger” within our android device and plug with a usb cable. chrome will detect the remote browser and we can see the console in the same way than we see it when we use chrome locally.

but we’re speaking about cordova/phonegap apps here so, what we need to do to use chrome://inspect with our hybrid apps? the answer is simple: we don’t need to do anything. cordova applications is nothing than a webkit browser inside a native app. chrome es webkit too so chrome://inspect will detect our remote device app and we will open console.

inspect_with_chrome_developer_tools_and_bad_religion-the_gray_race

this small trick in addition to the last post really marks a before and an after at least in my developing process.

if our app crashes in the device we only need to see the console’s log within our browser and see what happens. we also can add functionality, change variables, and override functions in the same way than we do it with our local browser.

app Android (robot)

Published at DZone with permission of Gonzalo Ayuso, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • How To Integrate Microsoft Team With Cypress Cloud
  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • MLOps: Definition, Importance, and Implementation
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: