folddevtools-android-webview-debugger

Debug Android WebViews, browsers, and Node.js targets using Chrome DevTools via FoldDevtools.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill folddevtools-android-webview-debugger-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: folddevtools-android-webview-debugger
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/folddevtools-android-webview-debugger
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill folddevtools-android-webview-debugger-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Inspecting and debugging WebViews inside Android apps is difficult, especially on non-rooted devices or third-party apps where debugging is not enabled. This Skill guides you through connecting Chrome DevTools to Android WebView, Stetho, and browser debug targets using FoldDevtools, with or without root access. ## Core Features & Use Cases - Rootless ADB Port Forwarding: Discover webview_devtools_remote_<pid> sockets and forward them to a local TCP port for remote DevTools connections. - XPosed Force-Enable Debugging: Use the FoldDevtools LSPosed module to enable WebView debugging in any app without modifying its code. - Stetho Integration: Initialize Facebook Stetho in your app and connect to its debug socket through FoldDevtools. - Use Case: You need to inspect network requests inside a hybrid Android app's WebView on a non-rooted phone. Enable WebView.setWebContentsDebuggingEnabled(true), forward the socket with adb forward tcp:9222 localabstract:webview_devtools_remote_<pid>, and connect FoldDevtools to 127.0.0.1:9222. ## Quick Start Help me debug an Android WebView on my non-rooted device by finding the devtools socket with adb and connecting FoldDevtools to it.

Frequently Asked Questions about folddevtools-android-webview-debugger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug an Android WebView without root?▼

Enable WebView debugging in your app with WebView.setWebContentsDebuggingEnabled(true), then find the socket via adb shell cat /proc/net/unix | grep devtools_remote. Forward it with adb forward tcp:9222 localabstract:webview_devtools_remote_<pid> and connect FoldDevtools to 127.0.0.1:9222.

How to enable WebView debugging in an Android app?▼

Call WebView.setWebContentsDebuggingEnabled(true) once, ideally in your Application class onCreate, guarded by BuildConfig.DEBUG. Every active WebView in the app then exposes a devtools socket that FoldDevtools or Chrome can attach to.

Can I debug WebViews in third-party Android apps?▼

Yes, on rooted devices you can install FoldDevtools as an XPosed/LSPosed module, enable it for the target app, and restart the app. The module force-enables WebView debugging without modifying the app's code.

Why is my WebView not appearing in the debug socket list?▼

The socket only exists when a WebView is actively loaded with debugging enabled. Verify setWebContentsDebuggingEnabled(true) was called, confirm the app is running with adb shell ps, and load a page in the WebView before checking /proc/net/unix.

Does FoldDevtools support Stetho debugging?▼

Yes, FoldDevtools supports Stetho and StethoX debug sockets. Initialize Stetho in your app, find the stetho_<package>_devtools_remote socket, forward it with adb forward, and connect through FoldDevtools remote mode.

Why does connecting to 127.0.0.1:9222 fail?▼

Connection refused usually means port forwarding is not active or points to a stale socket. Run adb forward --list to verify, remove stale entries with adb forward --remove-all, and re-forward to the current webview_devtools_remote_<pid> socket.