{"id":32123821,"url":"https://github.com/mpotthoff/vscode-android-webview-debug","last_synced_at":"2026-03-02T02:33:39.267Z","repository":{"id":37249145,"uuid":"146488111","full_name":"mpotthoff/vscode-android-webview-debug","owner":"mpotthoff","description":"Debug your JavaScript code running in WebViews on any Android device from VS Code.","archived":false,"fork":false,"pushed_at":"2024-03-28T21:01:50.000Z","size":690,"stargazers_count":26,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T21:27:53.898Z","etag":null,"topics":["android","chrome","chrome-debugging-protocol","debugger","editor","vscode","webview"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpotthoff.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-28T18:15:08.000Z","updated_at":"2025-09-05T19:31:26.000Z","dependencies_parsed_at":"2022-08-08T20:00:32.298Z","dependency_job_id":null,"html_url":"https://github.com/mpotthoff/vscode-android-webview-debug","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mpotthoff/vscode-android-webview-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpotthoff%2Fvscode-android-webview-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpotthoff%2Fvscode-android-webview-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpotthoff%2Fvscode-android-webview-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpotthoff%2Fvscode-android-webview-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpotthoff","download_url":"https://codeload.github.com/mpotthoff/vscode-android-webview-debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpotthoff%2Fvscode-android-webview-debug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29991285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","chrome","chrome-debugging-protocol","debugger","editor","vscode","webview"],"created_at":"2025-10-20T21:17:57.441Z","updated_at":"2026-03-02T02:33:39.260Z","avatar_url":"https://github.com/mpotthoff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n    \u003cimg src=\"https://github.com/mpotthoff/vscode-android-webview-debug/raw/master/images/icon.png\" alt=\"logo\" width=\"200\"\u003e\n  \u003cbr\u003e\n  VS Code - Android WebView Debugging\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eDebug your JavaScript code running in WebViews on any Android device from VS Code.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mpotthoff/vscode-android-webview-debug/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/mpotthoff/vscode-android-webview-debug.svg?logo=github\u0026style=flat-square\" alt=\"GitHub Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=mpotthoff.vscode-android-webview-debug\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/v/mpotthoff.vscode-android-webview-debug.svg?logo=visual-studio-code\u0026style=flat-square\" alt=\"Visual Studio Marketplace Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/mpotthoff/vscode-android-webview-debug/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/workflow/status/mpotthoff/vscode-android-webview-debug/Build/master?logo=github\u0026style=flat-square\" alt=\"GitHub Actions Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/mpotthoff/vscode-android-webview-debug/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/mpotthoff/vscode-android-webview-debug.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA VS Code extension to debug your JavaScript code in the Google Chrome browser or other WebView targets on Android devices, that support the [Chrome DevTools Protocol](https://chromedevtools.github.io/debugger-protocol-viewer/).\n\n![Demo](images/demo.gif)\n\n## Requirements\n\n### vscode-js-debug\n\nThis extension uses the [vscode-js-debug](https://github.com/microsoft/vscode-js-debug) extension under the hood.\n\n## Using the debugger\n\nWhen your launch config is set up, you can debug your project. Pick a launch config from the dropdown on the Debug pane in Code. Press the play button or F5 to start.\n\n### Configuration\n\nRight now the extension only supports attaching to an already running Google Chrome or WebView instance. This can be configured in the `.vscode/launch.json` file in the root directory of your project.\n\nIn case you want to use the old [Debugger for Chrome](https://github.com/Microsoft/vscode-chrome-debug) extension you can set `debug.javascript.usePreview` to `false`.\n\n\u003e All configuration options of the `pwa-chrome: attach` configuration of the [vscode-js-debug](https://github.com/microsoft/vscode-js-debug/blob/main/OPTIONS.md#pwa-chrome-attach) extension are supported.\n\nYou can optionally specify a port to use for the debugging connection or let the extension automatically choose an unsued one.\n\nIt is possible to specify the device and/or the application to attach to. If multiple possible instances are found the extension will ask you to choose one.\n\nAn example `launch.json` file:\n```json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"type\": \"android-webview\",\n            \"request\": \"attach\",\n            \"name\": \"Attach to Android WebView\",\n            \"application\": \"com.android.chrome\",\n            \"webRoot\": \"${workspaceFolder}\",\n            \"urlFilter\": \"http://example.com/*\"\n        }\n    ]\n}\n```\n\n### All contributed configuration fields\n\n* `device`: The serial of the device to use. It can be found using `adb devices`.\n* `application`: The package name of the application to connect to. For example `com.android.chrome`.\n* `connectTimeout`: The time the extension will wait for the webview to be ready in milliseconds.\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n* `android-webview-debug.adbPath`: Specifies the path to the ADB executable.\n* `android-webview-debug.adbArgs`: Specifies extra arguments for the ADB executable. For example `[\"-H\", \"1.2.3.4\"]`\n\n## Troubleshooting\n\n### Failed to locate ADB executable.\n\nThe ADB executable was not found. Usually it should be on the PATH environment variable. You can also specify it manually using the `android-webview-debug.adbPath` configuration parameter.\n\n### No WebViews found\n\nEnsure that the device is connected and that the Android application is a debug build or WebView debugging is enabled. You can always find the available WebViews by visiting `chrome://inspect/#devices` in Google Chrome.\n\n### No devices found\n\nEnsure that USB Debugging is enabled on your Android device and that ADB can find it. You can find a list of connected devices using the command `adb devices`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpotthoff%2Fvscode-android-webview-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpotthoff%2Fvscode-android-webview-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpotthoff%2Fvscode-android-webview-debug/lists"}