Please note, this is a STATIC archive of website from 03 Nov 2016, does not collect or store any user information, there is no "phishing" involved.

Valence (Firefox Tools Adapter)

Diese Übersetzung ist unvollständig. Bitte helfen Sie, diesen Artikel aus dem Englischen zu übersetzen.

Valence (ehemals Firefox Tools Adapter) ist ein experimentelles AddOn, welches die Firefox Developer Tools auch in anderen - auch nicht-gecko-basierten - Browsern bereitstellt.

Die vorangigen Browser-Ziele sind Chrome für Android und Safari für iOS.

Valence ist immernoch in der frühren Phase der Entwicklung, somit ist es nur als Preview verfügbar. Wir empfehlen es nicht den normalen Arbeitsprozess.

Installation und Einrichtung

Valence installieren

Wenn du die Firefox Developer Edition (egal welche Version) or Firefox 37 oder höher (egal welcher Browsertyp) installiert hast, wird beim Öffnen von WebIDE das Valence-AddOn automatisch installiert, somit kannst du diesen Schritt überspringen.

Sonst musst du die aktuelle Preview-Version von dieser Platform runterladen: FXDT-Adapters.

Anmerkung: Wenn dein Ziel nicht im WebIDE angezeigt wird, überprüfe, ob das Valence-AddOn nicht deaktiviert wurde. Du kannst dies im Extensions-Manager überprüfen.

Chrome auf Android - Einrichtung

Valence setzt Chrome 37.0 oder höher voraus (wenn du sowohl Chrome, als auch Chrome Beta installiert und geöffnet hast, werden nur die Tabs eines der Browser in den Firefox Developer Tools angezeigt).

Du musst auf deinem Gerät den Entwicklermodus und das USB-Debugging aktivieren. Folge dieser Anleitung, um den Entwicklermodus zu starten.

Safari, Firefox, and other WebViews on iOS setup

Valence has been tested against Safari on iOS 6, 7 and 8, as well as the iOS Simulator on OS X. The same code supports debugging Firefox on iOS and other embedded WebViews on iOS or iOS Simulator.

You will need to enable developer support on your device. Follow the instructions on this page (in the "To enable Web Inspector on iOS" section) to get started.

iOS support uses Google's ios-webkit-debug-proxy and its fork ios-webkit-debug-proxy-win32 on Windows. No special setup needs to happen on Mac, Linux and Windows Vista (or later), Valence contains and manages the proxy. On Windows XP, download Microsoft's PowerShell before installing the add-on. On Windows, you will also see a firewall prompt the first time the proxy is launched, where you have to click Allow. Note that on Windows the device drivers are installed by iTunes, so you will need to have that installed, or, at least, the Apple Mobile Device Support and Apple Application Support applications that come with it.

Chrome Desktop setup

Valence requires Chrome 37.0 or higher. You also need to start Chrome Desktop with a special flag, as remote debugging is not enabled by default on Chrome Desktop.

The important flag is --remote-debugging-port=9222. There is a page with information on how to run the Chrome process with these flags.

There are some other flags that can be helpful if you'd like to run this alongside another Chrome profile. By running with --no-first-run, --no-default-browser-check, and --user-data-dir you can run this process alongside another Chrome profile.

For example, on OSX, you could run the following command to start a debuggable copy of Chrome:

$ /Applications/Google\\ Chrome --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=$(mktemp -d -t 'chrome-remote_data_dir')

If you click on the toolbar button, and nothing happens, you most likely don't have anything running on port 9222. Check the Browser Console to see what has gone wrong.

Running Valence

Valence works by adding to the WebIDE window that is already used to connect to Firefox OS.

  1. Connect your device: Plug it in, fire up your browser, and navigate to a page you want to work on. If you are using OS X and have Xcode installed, you can also use the iOS simulator.
  2. Start up WebIDE: Open WebIDE from the Web Developer menu in Firefox.
  3. Choose your Runtime: Open the runtime list on the right of the toolbar. Under the "Custom" section, choose "Safari, Firefox, and other WebViews on iOS" or "Chrome Desktop". For Android devices, choose "Chrome on Android" in the "USB Devices" section. You may need to accept a debugging connection from your device.
  4. Choose your Tab: From the application list on the left of the toolbar, choose the tab you want to debug.
  5. Start Debugging: Click on the Debug button (it looks like a pause button) to connect the developer tools.

Send us feedback: Report any issues or problems you run in to. You can use the issue tracker at our GitHub project. There is a ton of functionality to add, and your feedback will help us focus on the most important parts first!


What’s under the hood?

This add-on is a new implementation of the Firefox Developer Tools Protocol. Rather than interfacing directly with content, it speaks to the remote debugging protocol surfaced by Chrome and iOS. This implementation is hosted inside the Firefox process and used internally by the Firefox Developer Tools.

When will it be ready?

We don’t know yet! We’re hard at work, and we wanted to show you our progress. When we’re confident that it’s ready to be used for full-time development, we’ll make a full release. In the meantime, the preview will regularly be updated.

How can I contribute?

The GitHub project page has instructions for getting involved with the code. Your feedback is also helpful: Talk to us on Twitter at @FirefoxDevTools, GitHub issues, or UserVoice.

Is this the same as

No. The ultimate goal of the project is to provide a unified protocol for third party tools to communicate with all browsers, by standardizing on a version of the Chromium protocol. We know of no browser vendors that have committed to unifying protocols.

With Valence, we’re not currently trying to solve the problem of a standard protocol, we’re just doing what we need to do to provide the Firefox Developer Tools for these browsers. Our tool is based on the Firefox Developer Tools protocol rather than the Chromium protocol.

While the early versions of’s protocol bridge served as some of the inspiration for this project, we’re taking the idea in a different direction.

Aren’t the downstream protocols constantly changing?

Yes, and we think that’s great - as vendor developer tools move at a rapid pace, we extend our protocols as fast as we develop features. We’re committed to keeping Valence up to date through these protocol changes. This is one reason we’re shipping this as an add-on rather than a built-in feature - we want updates to new protocol versions to get to you as fast as we can build them.

This isn’t easy work, but we care enough about this problem that we’re going to do what it takes to keep it going.

Can I use this protocol myself to target multiple browsers with my tool?

That is not an initial goal of Valence. But if there’s enough interest, we could consider it - get in touch.

Get help

Go to the #devtools room on IRC and we will try to help.

Schlagwörter des Dokuments und Mitwirkende

 Mitwirkende an dieser Seite: Micky261, PPElite, Oli84M, Andi85er
 Zuletzt aktualisiert von: Micky261,