Remote debugging WebViews  |  Chrome DevTools  |  Chrome for Developers Skip to main content Docs Build with Chrome Learn how Chrome works, participate in origin trials, and build with Chrome everywhere. Web Platform Capabilities ChromeDriver Extensions Chrome Web Store Chromium Web on Android Origin trials Release notes Productivity Create the best experience for your users with the web's best tools. DevTools Lighthouse Chrome UX Report Accessibility Modern Web Guidance Get things done quicker and neater, with our ready-made libraries. Workbox Puppeteer Experience Design a beautiful and performant web with Chrome. AI Performance CSS and UI Identity Payments Privacy and security Resources More from Chrome and Google. All documentation Baseline web.dev PageSpeed Insights audit Isolated Web Apps (IWA) Case studies Blog New in Chrome / English Deutsch Español – América Latina Français Indonesia Italiano Nederlands Polski Português – Brasil Tiếng Việt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文 – 简体 中文 – 繁體 日本語 한국어 Sign in Docs Chrome DevTools DevTools Get started AI assistance Overview Get started Chat with AI assistance Generate code in Console and Sources Data usage Panels Popular Elements Console Lighthouse Memory Network Performance Recorder Rendering Security Sources All Autofill Animations Application Changes Coverage CSS overview Developer resources Issues Layers Lighthouse Media Memory Inspector Network conditions Request conditions Performance monitor Protocol monitor Quick source Sensors WebAudio WebAuthn What's new Settings Accessibility For agents Docs More DevTools Get started AI assistance More Panels More Settings Accessibility For agents Case studies Blog New in Chrome Elements Overview DOM View and change the DOM View properties of DOM objects Badges reference CSS View and change CSS Find invalid, overridden, inactive, and other CSS Inspect and debug with the Color Picker Inspect grid layouts Inspect and debug flexbox layouts Inspect and debug container queries Feature reference Console Overview Understand errors and warnings with console insights Log messages Run JavaScript Watch JavaScript in real-time Format and style messages Feature reference API reference Utilities API reference Sources Overview Debug JavaScript Pause your code with breakpoints Run snippets of JavaScript Debug original code instead of deployed with source maps ignoreList source map extension Set up workspaces to save changes to source files Override web content and HTTP response headers locally JavaScript debugging reference Debug C/C++ WebAssembly Network Overview Inspect network activity Features reference View page resources Performance Overview Analyze runtime performance Annotate and share your performance findings Features reference Timeline event reference Analyze CSS selector performance Profile Node.js performance Customize your performance data with extensibility API Get actionable insights on your website's performance Save performance traces Lighthouse Optimize web speed Memory Overview Memory terminology Fix memory problems Record heap snapshots Allocation Profiler tool Application Overview Debug Progressive Web Apps View and edit Local storage Session storage Extension storage IndexedDB data Web SQL data View, add, edit, and delete cookies View cache data Test back/forward caching Debugging speculation rules Debug WebMCP tools Debug background services View frame details View Application Cache data Recorder Overview Record, replay, and measure user flows Features reference Customize the Recorder with extensions Rendering Overview Discover issues with rendering performance Emulate CSS media features Apply rendering effects More panels Inspect and debug saved addresses with the Autofill panel Understand security issues with the Security panel Emulate device sensors with the Sensors panel View WebAudio API metrics with the WebAudio panel Emulate authenticators with the WebAuthn panel Inspect and modify animations with the Animations panel Track changes to HTML, CSS, and JavaScript with the Changes panel Find and analyze unused code with the Coverage panel View and manually load source maps with the Developer Resources panel Identify potential CSS improvements with the CSS Overview panel Find and fix problems with the Issues panel Analyze the layers of your website with the Layers panel Debug media players with the Media panel Inspect ArrayBuffer, TypedArray, DataView or Wasm memory with the Memory inspector panel Override the user agent string with the Network conditions panel Selectively block or throttle resources with the Request Conditions panel Analyze runtime performance in real-time with the Performance monitor panel View and send CDP requests with the Protocol monitor panel View source files while having access to other tools with the Quick source panel What's new Remote debugging Remote debug Android devices Access local servers and Chrome instances with port forwarding Remote debugging WebViews Accessibility Features reference Contrast and readability Track elements focus Navigate DevTools with assistive technology Settings Overview All settings Preferences Workspace AI innovations Experiments Ignore list Devices Throttling Locations Shortcuts Resources Engineering blog Build with Chrome Web Platform Capabilities ChromeDriver Extensions Chrome Web Store Chromium Web on Android Origin trials Release notes Productivity DevTools Lighthouse Chrome UX Report Accessibility Modern Web Guidance Workbox Puppeteer Experience AI Performance CSS and UI Identity Payments Privacy and security Resources All documentation Baseline web.dev PageSpeed Insights audit Isolated Web Apps (IWA) Overview Get started Chat with AI assistance Generate code in Console and Sources Data usage Popular Elements Console Lighthouse Memory Network Performance Recorder Rendering Security Sources All Autofill Animations Application Changes Coverage CSS overview Developer resources Issues Layers Lighthouse Media Memory Inspector Network conditions Request conditions Performance monitor Protocol monitor Quick source Sensors WebAudio WebAuthn What's new Home Docs Chrome DevTools Panels Remote debugging WebViews Stay organized with collections Save and categorize content based on your preferences. Debug WebViews in your native Android apps using Chrome Developer Tools. On Android 4.4 (KitKat) or later, use DevTools to debug WebView content in native Android applications. Summary Enable WebView debugging in your native Android app; debug WebViews in Chrome DevTools. Access list of debug-enabled WebViews via chrome://inspect. Debugging WebViews is the same as debugging a web page through remote debugging. Configure WebViews for debugging WebView debugging must be enabled from within your application. To enable WebView debugging, call the static method setWebContentsDebuggingEnabled on the WebView class. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { WebView.setWebContentsDebuggingEnabled(true); } This setting applies to all of the application's WebViews. Tip: WebView debugging is not affected by the state of the debuggable flag in the application's manifest. If you want to enable WebView debugging only when debuggable is true, test the flag at runtime. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)) { WebView.setWebContentsDebuggingEnabled(true); } } Open a WebView in DevTools The chrome://inspect page displays a list of debug-enabled WebViews on your device. To start debugging, click inspect below the WebView you want to debug. Use DevTools as you would for a remote browser tab. The gray graphics listed with the WebView represent its size and position relative to the device's screen. If your WebViews have titles set, the titles are listed as well. Troubleshooting Can't see your WebViews on the chrome://inspect page? Verify that WebView debugging is enabled for your app. On your device, open the app with the WebView you want to debug. Then, refresh the chrome://inspect page. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2015-04-13 UTC. [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2015-04-13 UTC."],[],[]] Contribute File a bug See open issues Related content Chromium updates Case studies Archive Podcasts & shows Follow @ChromiumDev on X YouTube Chrome for Developers on LinkedIn RSS Terms Privacy Manage cookies English Deutsch Español – América Latina Français Indonesia Italiano Nederlands Polski Português – Brasil Tiếng Việt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文 – 简体 中文 – 繁體 日本語 한국어