Giter Site home page Giter Site logo

joelsusaya / webkit-webinspector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artygus/webkit-webinspector

0.0 2.0 0.0 2.73 MB

Standalone Webkit WebInspector frontend extracted from Webkit sources

License: MIT License

JavaScript 91.93% CSS 7.32% HTML 0.75%

webkit-webinspector's Introduction

webkit-webinspector

Standalone Webkit WebInspector frontend extracted from Webkit sources. I use it as part of my project devtools-compat-proxy, a tool intended to provide compatibility between devtools protocols.

Usage

To debug iOS devices you need to have ios-webkit-debug-proxy installed and running.

To start static server, run

./server.js

or

node server.js

By default server will start on 8080, you can change server port providing the command-line argument, e.g. ./server.js 8000. Press CTRL+C to quit.

You can switch between versions using vX argument, allowed values are v7, v8, latest (default value).

./server v7

Now just navigate to http://localhost:8080/Main.html?ws=localhost:9222/devtools/page/1. ws=... part can be taken from http://localhost:9222, "frontend" page of ios-webkit-debug-proxy tool.

To debug older iOS devices with the latest inspector you may need to link another InspectorBackendCommands.js file, e.g.

ln -f lib/WebInspectorUI/latest/Protocol/Legacy/8.0/InspectorBackendCommands.js lib/WebInspectorUI/latest/Protocol/

but I recommend switching to older version.

Update

For compilation babel transpiler is required, just run

npm install

Checkout WebInspectorUI to temp dir

svn checkout https://svn.webkit.org/repository/webkit/trunk/Source/WebInspectorUI/UserInterface tmp/WebInspectorUI
rm -rf tmp/**/.svn

Clean old stuff

rm -rf lib/WebInspectorUI/latest
cp -R tmp/WebInspectorUI lib/WebInspectorUI/latest

Compile*

cd tmp/WebInspectorUI
find . -name '*.js' -not -path './External/*' -print0 | xargs -0 -I file -P 8 ../../node_modules/.bin/babel --blacklist useStrict file -o ../../lib/WebInspectorUI/latest/file

Link InspectorBackendCommands.js file

ln lib/WebInspectorUI/latest/Protocol/Legacy/9.0/InspectorBackendCommands.js lib/WebInspectorUI/latest/Protocol/

The final stage is to make everything work. There's a very high chance inspector won't start without extra work, for many reasons. So just open the console to find out the reasons of failure and patch compiled sources.

*Pay attention to the babel output, you might need to tweak WebInspectorUI code a bit.

webkit-webinspector's People

Contributors

artygus avatar luc-bucher avatar

Watchers

 avatar  avatar

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.