Coder Social home page Coder Social logo

remotedebug / remotedebug-ios-webkit-adapter Goto Github PK

View Code? Open in Web Editor NEW
2.7K 2.7K 217.0 923 KB

Debug Safari and WebViews on iOS from tools like VS Code and Chrome DevTools

JavaScript 3.05% TypeScript 96.92% CSS 0.03%
chrome-devtools debugger devtools ios protocol-adapter remotedebug safari

remotedebug-ios-webkit-adapter's People

Contributors

aamulumi avatar arilotter avatar artygus avatar auchenberg avatar benzhe avatar carpben avatar cmaraglio avatar elitree avatar ewanharris avatar gogoprog avatar joemeeks avatar kriserickson avatar oleg-codaio avatar oliverjash avatar pandreyn avatar paulirish avatar petewalker avatar philmirez avatar qkdreyer avatar sardtok avatar skrat avatar taneltm avatar undefinedoffset avatar wiedikerli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

remotedebug-ios-webkit-adapter's Issues

Windows: Unable to find devices

I think I have installed the adapter (and everything that is required to run it) as mentioned. However, I fail to list the devices in the chrome devtool (and firefox).

The list does not even show up. It stays empty and does not even list the very own browser tabs.

This said I do get some warnings and now I wonder whether these are related:

C:>remotedebug_ios_webkit_adapter --port=9222
adapter.start
remotedebug-ios-webkit-adapter is listening on port 9222
iosAdapter.getTargets
http://127.0.0.1:9222/json
(node:6040) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 18): TypeError: Bad argument
(node:6040) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not hand
led will terminate the Node.js process with a non-zero exit code.chrome-devtools://devtools/bundled/inspector.html

Working with Simulator?

Hi! I wonder if it works with Simulator? I've tried with iOS 10 Simulator and I see an empty list browsing to /json endpoint.

Windows: Unable to find devices

I have installed the adapter on Windows 10, but no devices show up in Chrome

Currently running ios 10.3 I have been able to get the ios_webkit_debug_proxy.exe working currently with the same setup on it's own.

I have tried running the updated ios_webkit_debug_proxy.exe

But it keeps saying in chrome:
Remote Target #LOCALHOST

In the console I keep getting
iosAdapter.getTargets

image

Does not show any devices in chrome dev tools

I installed ioswebkit proxy debug and libmobiledevice (and the ios webkit proxy debug works - i tested it first). I then installed remotedebug-ios-webkit-adapter via the npm -g command and it installed without error.

After starting up dev tools "chrome://inspect/#devices" and clicking "configure" and adding "localhost:9000", it shows the text "Remote Target #LOCALHOST" but nothing under it.

restarting chrome did not fix it.
Restarting remotedebug-ios-webkit-adapter did not fix it (nor choosing a diff port).

I don't see any errors.

remotedebug-ios-webkit-adapter keeps printing out:

iosAdapter.getTargets
http://127.0.0.1:9222/json

How do i figure out what's wrong?

Unknown compiler option 'types'.

While trying to build the latest source code TypeScript exits with the error:

Unknown compiler option 'types'.

and a few more errors like:

src\adapters\adapter.ts(5,26): error TS2307: Cannot find module 'request'.
src\adapters\adapter.ts(6,23): error TS2307: Cannot find module 'http'.
...

I'm using nodejs version 7.7.2 (The global typescript compiler has the version 2.2.1).

Improve logging

Improve logging by adding a diag flag, that outputs internal logging and forwards log output from ios_webkit_proxy.

Place `optimist` in `dependencies`

The optimist package appears to be an actual dependency, but is listed in devDependencies in package.json. I think it needs to be moved into dependencies, or it won't get installed automatically, and remotedebug_ios_webkit_adapter complains.

Does not work with chrome

I need to profile mobile ios device but I cannot. There is log
:\Users\ssolozhentsev>remotedebug_ios_webkit_adapter --port=9000
adapter.start
remotedebug-ios-webkit-adapter is listening on port 9000
New websocket connection to /devtools/page/1
C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\out\adapters\iosAdapter.js:90
var version = target.data.metadata.version;
^

TypeError: Cannot read property 'data' of null
at IOSAdapter.connectTo (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\out\adapters\iosAdapter.js:90:33)
at ProxyServer.onWSSConnection (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\out\server.js:97:23)
at WebSocketServer. (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\out\server.js:34:64)
at emitOne (events.js:77:13)
at WebSocketServer.emit (events.js:169:7)
at C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\node_modules\ws\lib\WebSocketServer.js:91:14
at completeHybiUpgrade2 (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\node_modules\ws\lib\WebSocketServer.js:284:5)
at completeHybiUpgrade1 (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\node_modules\ws\lib\WebSocketServer.js:309:13)
at WebSocketServer.handleHybiUpgrade (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\node_modules\ws\lib\WebSocketServer.js:337:3)
at WebSocketServer.handleUpgrade (C:\Users\ssolozhentsev\AppData\Roaming\npm\node_modules\remotedebug-ios-webkit-adapter\node_modules\ws\lib\WebSocketServer.js:173:26)

npm version is broken

I installed the version from npm as described in the readme. This didn't even make web views show up in chrome://inspect. When I tried the version from master, it suddenly just works (except for some bugs, but it's totally workable).

It would be nice if the current state was published to npm.

homebrew location is wrong

Due to corporate machine things, my homebrew binary location isn't /usr/local/bin but my own choice of $HOME/.homebrew/bin

As such the proxypath fails.

Determining it via node-which or something might work instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.