Code Monkey home page Code Monkey logo

devtools.html's Introduction

devtools.html

Setup

Install gulp globally and all dependencies.

  • $ npm install gulp -g
  • $ npm install

Building

  • $ webpack --progress --color --watch Builds all webpacked projects, and waits for changes. This is much quicker than gulp watch because webpack caches the parsed JS files, and only outputs the changes
  • $ gulp build-prefs Creates the ./build/preferences.json file; only need to run if client/preferences/devtools.js changes.

Running the server and using the toolbox

  1. Start server in Firefox with listen in GCLI (uses default port 6080)
  2. Run gulp start to start the proxy and static dev server.
  3. Open http://localhost:8081/client/framework/toolbox-wrapper.html in a tab.

It's worth noting that the server serves everything in the devtools.html directory to localhost:8081. This is probably OK unless you either don't trust yourself, or you open the port to the network and store private files in this directory.

Sights worth seeing

  • http://localhost:8081/?wsPort=9000 to run the connection test tool. You should see something like this:

    Success! Check console for protocol logs. TabTarget:server2.conn26.child13/tab1 [Front for inspector/server2.conn26.child13/inspectorActor3] [Front for domwalker/server2.conn26.child13/domwalker28]

    And see TCP -> WS logs in the console where you ran gulp serve-connect

Connecting to Chrome

  1. Allow unsigned add-ons in Firefox: set xpinstall.signatures.required to false in about:config
  2. Install the special Valence build for your OS
  • If you already had Valence installed previously, you should restart Firefox before proceeding, something's not currently unloading in the add-on
  1. Start Chrome with at least --remote-debugging-port=9222 CLI arg
  • Full OS X command: /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222
  • More details in Valence README
  1. Ensure some page is open in Chrome for inspecting
  2. Run gulp start
  3. Navigate to http://localhost:8081/?wsPort=9001 to run the connection test tool
  4. If you want to test the toolbox, you'll need to change the port in getWSTarget in toolbox.js to 9001.

Connecting to Servo

Initial setup:

$ git clone https://github.com/servo/servo.git
$ cd servo/
$ ./mach build -r # release build

Start servo with a devtools server listening on port 6080 and open to mozilla.org:

$ ./mach run --devtools 6080 https://google.com

See also:

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.