All Projects → mpotthoff → vscode-android-webview-debug

mpotthoff / vscode-android-webview-debug

Licence: LGPL-3.0 license
Debug your JavaScript code running in WebViews on any Android device from VS Code.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to vscode-android-webview-debug

Vscode Chrome Debug
Debug your JavaScript code running in Google Chrome from VS Code.
Stars: ✭ 2,126 (+11711.11%)
Mutual labels:  debugger, chrome-debugging-protocol
QuickWebKit
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Stars: ✭ 29 (+61.11%)
Mutual labels:  webview
coc-webview
Using an external browser to support the webview in coc.nvim.
Stars: ✭ 21 (+16.67%)
Mutual labels:  webview
apollo
microcontroller-based FPGA / JTAG programmer
Stars: ✭ 32 (+77.78%)
Mutual labels:  debugger
X5Bridge
Three party libraries of Tencent x5webview and JS interaction
Stars: ✭ 17 (-5.56%)
Mutual labels:  webview
flutter webview
A complete tutorial series on Flutter webview.
Stars: ✭ 39 (+116.67%)
Mutual labels:  webview
vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (+161.11%)
Mutual labels:  debugger
vscDebugger
(Partial) Implementation of the Debug Adapter Protocol for R
Stars: ✭ 58 (+222.22%)
Mutual labels:  debugger
stylish-log
🎉 Stylish-log "A beautiful way to see your web console logs"
Stars: ✭ 12 (-33.33%)
Mutual labels:  debugger
vil
Vulkan Layer for Live Introspection & Debugging. Allows to view all vulkan state live inside your application.
Stars: ✭ 39 (+116.67%)
Mutual labels:  debugger
tesla auth
Securely generate API tokens for third-party access to your Tesla.
Stars: ✭ 114 (+533.33%)
Mutual labels:  webview
webview
Build cross platform desktop apps with Elixir and web technologies.
Stars: ✭ 18 (+0%)
Mutual labels:  webview
ios-visionkit-webview
Element detection with Vision Framework and CoreML
Stars: ✭ 26 (+44.44%)
Mutual labels:  webview
nadbg
👀Dynamic memory watcher/tracer/analyzer for CTF pwn
Stars: ✭ 51 (+183.33%)
Mutual labels:  debugger
cc-tool
Mirror of cc-tool from SourceForge
Stars: ✭ 144 (+700%)
Mutual labels:  debugger
Webview
Android WebView,Js互调
Stars: ✭ 22 (+22.22%)
Mutual labels:  webview
Android-Web-Inspector
How to Inspecting Android WebView, Network logs, XHR logs (including url request and parameter) and Element/DOM inspecting
Stars: ✭ 54 (+200%)
Mutual labels:  webview
app
Buggregator is a beautiful, lightweight debug server build on Laravel that helps you catch your smpt, sentry, var-dump, monolog, ray outputs. It runs without installation on multiple platforms.
Stars: ✭ 259 (+1338.89%)
Mutual labels:  debugger
flutter app o2o
flutter高校食堂o2o预定服务,商业级应用,持续升级,完全开源。
Stars: ✭ 45 (+150%)
Mutual labels:  webview
gowebview
tool to build android apps with WebView from your golang http server; moved to gitlab.com/microo8/gowebview
Stars: ✭ 35 (+94.44%)
Mutual labels:  webview


logo
VS Code - Android WebView Debugging

Debug your JavaScript code running in WebViews on any Android device from VS Code.

GitHub Release Visual Studio Marketplace Release GitHub Actions Build Status License

A 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.

Demo

Requirements

vscode-js-debug

This extension uses the vscode-js-debug extension under the hood.

Using the debugger

When 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.

Configuration

Right 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.

In case you want to use the old Debugger for Chrome extension you can set debug.javascript.usePreview to false.

All configuration options of the pwa-chrome: attach configuration of the vscode-js-debug extension are supported.

You can optionally specify a port to use for the debugging connection or let the extension automatically choose an unsued one.

It 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.

An example launch.json file:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "android-webview",
            "request": "attach",
            "name": "Attach to Android WebView",
            "application": "com.android.chrome",
            "webRoot": "${workspaceFolder}",
            "urlFilter": "http://example.com/*"
        }
    ]
}

All contributed configuration fields

  • device: The serial of the device to use. It can be found using adb devices.
  • application: The package name of the application to connect to. For example com.android.chrome.
  • connectTimeout: The time the extension will wait for the webview to be ready in milliseconds.

Extension Settings

This extension contributes the following settings:

  • android-webview-debug.adbPath: Specifies the path to the ADB executable.
  • android-webview-debug.adbArgs: Specifies extra arguments for the ADB executable. For example ["-H", "1.2.3.4"]

Troubleshooting

Failed to locate ADB executable.

The 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.

No WebViews found

Ensure 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.

No devices found

Ensure 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].