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.
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:
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.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
