Android firefox open with

Remotely debugging Firefox for Android

This guide explains how to use remote debugging to inspect or debug code running in Firefox for Android over USB.

Мы недавно сильно упростили процесс подключения инструментов разработки к Firefox для Android. Если вы работаете с Firefox Desktop 36 или новее, и Firefox для Android 35 или новее, то попробуйте новый процесс вместо этого.

This guide’s split into two parts: the first part, «Prerequisites» covers stuff you only need to do once, while the second part, «Connecting», covers stuff you need to do each time you connect the device.

Prerequisites

First, you’ll need:

  • a desktop or laptop computer with Firefox 15 or higher running on it
  • an Android device capable of running Firefox for Android with Firefox for Android 15 or higher running on it
  • a USB cable to connect the two devices

ADB setup

Next, you’ll need to get the desktop and the Android device talking to each other using the adb command-line tool.

On the Android device

  • Enable USB debugging (step 2 of this link only).
  • Attach the device to the desktop via USB.

On the desktop

  • Установите корректную версию Android SDK для вашего устройства.
  • С помощью Android SDK установите инструменты платформы Android Platform Tools.
  • Платформа Android Tools устанавливает adb (Android Debug Bridge) в директорию «Platform-инструментов», в которой установлена Android SDK. Убедитесь, что каталог «инструментов платформы» находится в переменной окружения path.

To check it worked, open up a command shell on the desktop and type:

You should see some output like:

(The long hex string will be different.)

If you do, then adb has found your device and you’ve successfully set up ADB.

Enable remote debugging

Next, you need to enable remote debugging on both the Android device and the desktop.

Firefox for Android 24 and earlier

To enable remote debugging on the device, you need to set the devtools.debugger.remote-enabled preference to true .

Go to about:config in Firefox for Android, type «devtools» into the search box and press the Search key. You’ll see all the devtools preferences. Find the devtools.debugger.remote-enabled preference, and press «Toggle».

Firefox for Android 25 and later

On Firefox for Android 25 and later, there’s a menu item to enable remote debugging. Open the menu, select «Settings», then «Developer tools» (on some Android devices you may need to select «More» to see the «Settings» option). Check the «Remote debugging» box:

Читайте также:  Как посмотреть закрытые уведомления андроид

The browser will display a notification reminding you to set up port forwarding, which we’ll do later on.

On the desktop

On the desktop, remote debugging is enabled by a setting in the Toolbox. Open the Toolbox, click the «Settings» button in the toolbar, and check «Enable remote debugging» in the Settings tab:

You’ll then see a new option in the Web Developer menu labeled «Connect. «:

Connecting

Now you can connect the remote debugging tools to the device. First, attach the device to the desktop with a USB cable, if you haven’t already.

On the desktop

For Firefox for Android 35 and later, go to a command prompt, and type:

For Firefox for Android builds in other channels, the org.mozilla.firefox part should be changed to:

  • org.mozilla.firefox_beta for Beta
  • org.mozilla.fennec_aurora for Aurora
  • org.mozilla.fennec for Nightly

For Firefox for Android 34 and earlier, type:

(If you’ve changed the value the Android device uses for a debugging port, you’ll need to adjust this accordingly.)

For Firefox OS, type:

You’ll need to reissue this command each time you physically attach desktop and device with the USB cable.

Then go to the Web Developer menu on Firefox, and select «Connect. «. You’ll see a page that looks like this:

Unless you’ve changed the port numbers, choose 6000 and press the «Connect» button.

On the Android device

Next you’ll see a dialog on the Android device asking you to confirm the connection:

Press «OK». The desktop waits for a few seconds to give you time to acknowledge this dialog: if it times out, just press «Connect» in the desktop dialog again.

On the desktop

Next, the desktop shows you a dialog that looks something like this:

This is asking whether you want to debug web content running in a browser tab, or to debug the browser code itself.

  • You’ll see one entry under «Available remote tabs» for each open tab, and clicking it will attach the debugging tools to the web content hosted by that tab. If you want to debug your web content, you’ll choose the relevant content tab.
  • You’ll see one entry under «Available remote processes»: this is the browser process itself. You’ll choose this option if you want to debug the browser’s own code.

Let’s choose to attach to the mozilla.org website. The Toolbox will open in its own window, attached to the Firefox for Android tab that’s currently hosting mozilla.org:

The Toolbox, and the tools it hosts, work in just the same way as they do when attached to local content.

Источник

Shortcut the internet with Firefox for Android

See all your open tabs, recent searches and favorite sites all in one place with Firefox browser for Android.

Get Firefox for Android

Send a download link to your phone.

Читайте также:  Есть для android электронные таблицы

Fast and Private

Firefox for Android delivers effortless privacy protection with lighting-fast page loads. Enhanced Tracking Protection automatically blocks online trackers from following you around the web and slowing down your pages.

One tap to private mode

Get to Private Browsing Mode with just one tap. And when you close Private Browsing Mode, your browsing history is automatically erased from your device.

Search your own way

Got a big phone and normal sized thumbs? No problem. Firefox for Android lets you move the search bar from the top to the bottom making it easier to use with one hand. You can also choose your own search engine within the browser, and set Firefox as your default browser if you want.

Save power with Dark Mode

Switch to Dark Mode any time to reduce eye strain and prolong your battery power.

Own your home screen

Get to the parts of the internet you care about faster. Choose to see all your open tabs, recent searches, bookmarks and favorite sites all in one place.

Supercharge Firefox with Add-ons

Add-ons are like powerful little tools you can add to your browser to do things like increase default privacy settings and customize your experience.

Pick up where you left off

Go from your phone to your laptop, tablet and back without skipping a beat. With Firefox on all your devices, you can take your bookmarks, passwords, saved logins and browsing history wherever you go.

Search from your phone’s home screen

No need to open the app. Add the Firefox search widget and search the web directly from your device’s home screen.

Pin videos to your screen

Pop videos out of their websites or players and pin them to the top of your phone’s screen to watch while you surf the web and do other things. Stay entertained while you multitask.

About Mozilla

Mozilla exists to build the Internet as a public resource accessible to all because we believe open and free is better than closed and controlled. We build products like Firefox and Pocket to promote choice, transparency and control.

Источник

Open With от Geoff Lankow

Quickly test out your web pages in Chrome, Edge, Safari, or Opera. Open With opens the current page in your other browsers with just two clicks.

Метаданные расширения

Используется

Сообщить о нарушении правил этим дополнением

Если вы считаете, что это дополнение нарушает политики Mozilla в отношении дополнений, или имеет проблемы с безопасностью или приватностью, сообщите об этих проблемах в Mozilla, используя эту форму.

Не используйте эту форму, чтобы сообщать об ошибках или запрашивать новые функции в дополнении; это сообщение будет отправлено в Mozilla, а не разработчику дополнения.

Этому дополнению нужно:

  • Обмениваться сообщениями с программами, помимо Firefox
  • Загружать файлы, а также читать и изменять историю загрузок браузера
  • Получать доступ ко вкладкам браузера

Removed support for Python 2.7 and fixed some minor bugs.

Читайте также:  Android разбитый экран включить отладку по usb

Источник

Debugging Firefox for Android with WebIDE

This article describes how to connect the Firefox Developer Tools to Firefox for Android from Firefox 36 onwards.

It’s been possible for a long time to connect the Firefox Developer Tools to Firefox for Android so you can debug your mobile website. Until now, though, this was a fairly complex and error-prone process. From Firefox 36 we’ve made the process much simpler: in particular, you don’t need to deal directly with the adb tool at all. Now you connect using WebIDE, which takes care of setting up adb behind the scenes.

For this to work, you need at least Firefox 36 on the desktop and Firefox 35 on the mobile device. If you need to use an earlier version, see the older instructions for connecting the developer tools to Firefox for Android.

This guide is split into two parts: the first part, «Prerequisites», covers stuff you only need to do once, while the second part, «Connecting», covers stuff you need to do each time you connect the device.

Prerequisites

First, you’ll need:

  • a desktop or laptop computer with Firefox 36 or higher running on it
  • an Android device capable of running Firefox for Android with Firefox for Android 35 or higher running on it
  • a USB cable to connect the two devices

ADB Helper

Your desktop Firefox also needs to have the ADB Helper add-on, version 0.7.1 or higher. This should be installed for you automatically the first time you open WebIDE. To check the version, type about:addons into the browser’s address bar and you should see ADB listed.

If you don’t have ADB Helper version 0.7.1 or higher, select «Manage Extra Components» from the «Projects» menu, and you’ll see the «Extra Components» window, which will contain an entry for ADB Helper:

Click «uninstall», then «install», and you should now have the latest version.

Setting up the Android device

First, enable USB debugging by following steps 2 and 3 of this link only.

Next, enable remote debugging in Firefox for Android. Open the browser, open its menu, select «Settings», then «Developer tools» (on some Android devices you may need to select «More» to see the «Settings» option). Check the «Remote debugging» box:

The browser might display a notification reminding you to set up port forwarding, which you can ignore.

Connecting

Connect the Android device to the desktop with the USB cable, open WebIDE, and open the «Runtimes» menu. You will see Firefox for Android listed as a debugging target under «USB DEVICES»:

Select it. On the Android device, you’ll now see a warning message:

Click OK. Now click the «Open App» menu in WebIDE. You’ll see a list of all the tabs open on the device:

Select a tab to attach the developer tools to it:

Now you should be able to use all the Firefox developer tools that support remote debugging. See the page on remote debugging for more details.

Источник

Оцените статью