Unlock Mobile Web Debugging with Eruda: A Powerful JS Console for Browsers

Eruda is a lightweight JavaScript plugin that brings desktop‑like DevTools to mobile browsers, offering a console, DOM inspector, network monitor, resource viewer, page info, snippets, and source viewer, making on‑device debugging fast and efficient for web developers.

Java High-Performance Architecture
Java High-Performance Architecture
Java High-Performance Architecture
Unlock Mobile Web Debugging with Eruda: A Powerful JS Console for Browsers

What Is Eruda?

Eruda is a developer tool for mobile browsers, implemented as a lightweight JavaScript plugin that can be added to any web page.

Why It Was Created

The author found logging and debugging on mobile devices cumbersome, often resorting to window.onerror alerts. Inspired by the convenience of desktop DevTools, he built Eruda to provide similar capabilities directly on phones.

Running Example

Below are screenshots of Eruda in action on a mobile page:

Eruda screenshot 1
Eruda screenshot 1
Eruda screenshot 2
Eruda screenshot 2
Eruda screenshot 3
Eruda screenshot 3

Official Demo

Visit the official demo at http://liriliri.github.io/eruda/.

Key Features

Console : Displays log messages and allows execution of arbitrary JavaScript.

Elements : Shows the current DOM state of the page.

Network : Lists details of each network request.

Resource : Provides information about local storage, cookies, session data, scripts, and styles.

Info : Shows the page URL and User‑Agent string.

Snippets : Lets you add borders to elements to help analyze layout structure.

Sources : Offers a source viewer for HTML, JavaScript, and CSS files.

Project Repository

The source code is hosted on GitHub: https://github.com/liriliri/eruda.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaScriptmobile debuggingWeb Developmentfrontend tools
Java High-Performance Architecture
Written by

Java High-Performance Architecture

Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.