Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

remotedebug-ios-webkit-adapter

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remotedebug-ios-webkit-adapter

[![Build Status](https://travis-ci.org/RemoteDebug/remotedebug-ios-webkit-adapter.svg?branch=master)](https://travis-ci.org/RemoteDebug/remotedebug-ios-webkit-adapter) <img s

npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

RemoteDebug iOS WebKit Adapter

Build Status Release

RemoteDebug iOS WebKit Adapter is an protocol adapter that enables tools compatible with the RemoteDebug Inspector Core Protocol Specification to work with Safari Mobile / WebKit WebView winstances running in iOS devices.

Getting Started

1) Install dependencies

Before you use this adapter you need to make sure you have the latest version of iTunes installed, as we need a few libraries provided by iTunes to talk to the iOS devices.

Linux

Follow the instructions to install ios-webkit-debug-proxy and libimobiledevice

Windows

All dependencies should be bundled. You should be good to go.

OSX/Mac

Make sure you have Homebrew installed, and run the following command to install ios-webkit-debug-proxy and libimobiledevice

brew update
brew unlink libimobiledevice ios-webkit-debug-proxy
brew uninstall --force libimobiledevice ios-webkit-debug-proxy
brew install --HEAD libimobiledevice
brew install --HEAD ios-webkit-debug-proxy

2) Instal latest version of the adapter

npm install remotedebug-ios-webkit-adapter -g

3) Run the adapter from your favorite command line

remotedebug_ios_webkit_adapter --port=9000

BTW: ios-webkit-debug-proxy will be run automatically for you, no need to start it separately.

4) Open your favorite tool

Open your favorite tool such as Chrome DevTools or Visual Studio Code and configure the tool to connect to the protocol adapter.

Configuration

Usage: remotedebug_ios_webkit_adapter --port [num]

Options:
  -p, --port  the adapter listerning post  [default: 9000]
  --version   prints current version

Usage with Chrome (Canary) and Chrome DevTools

You can have your iOS targets show up in Chrome's chrome://inspect page by leveraging the new network discoverbility feature where you simple add the IP of computer running the adapter ala localhost:9000.

Using with Mozilla debugger.html

You can have your iOS targets show up in Mozila debugger.html, by starting remotedebug_ios_webkit_adapter --port=9222 and selecting the Chrome tab.

Using with Microsoft VS Code

Implemented methods

Domain.method
CSS.setStyleTexts
CSS.getMatchedStylesForNode
CSS.addRule
CSS.getMatchedStylesForNode
Page.startScreencast
Page.stopScreencast
Page.screencastFrameAck
Page.getNavigationHistory
Page.setOverlayMessage
DOM.enable
DOM.setInspectMode
DOM.setInspectedNode
DOM.pushNodesByBackendIdsToFrontend
DOM.getBoxModel
DOM.getNodeForLocation
DOMDebugger.getEventListeners
Emulation.setTouchEmulationEnabled
Emulation.setScriptExecutionDisabled
Emulation.setEmulatedMedia
Rendering.setShowPaintRects
Input.emulateTouchFromMouseEvent
Network.getCookies
Network.deleteCookie
Network.setMonitoringXHREnabled

How to contribute

npm install
npm start

Diganostics logging

DEBUG=remotedebug npm start

License

MIT

FAQs

Package last updated on 06 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts