aboutsummaryrefslogtreecommitdiff
path: root/files/bn/tools
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
commita065e04d529da1d847b5062a12c46d916408bf32 (patch)
treefe0f8bcec1ff39a3c499a2708222dcf15224ff70 /files/bn/tools
parent218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (diff)
downloadtranslated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.gz
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.bz2
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.zip
update based on https://github.com/mdn/yari/issues/2028
Diffstat (limited to 'files/bn/tools')
-rw-r--r--files/bn/tools/webide/index.html283
-rw-r--r--files/bn/tools/webide/troubleshooting/index.html81
2 files changed, 0 insertions, 364 deletions
diff --git a/files/bn/tools/webide/index.html b/files/bn/tools/webide/index.html
deleted file mode 100644
index 0bad22e164..0000000000
--- a/files/bn/tools/webide/index.html
+++ /dev/null
@@ -1,283 +0,0 @@
----
-title: WebIDE
-slug: Tools/WebIDE
-tags:
- - NeedsTranslation
- - TopicStub
-translation_of: Archive/WebIDE
----
-<div>{{ToolsSidebar}}</div><div class="geckoVersionNote">
-<p>The WebIDE is available from Firefox 34 onwards.</p>
-
-<p>You can also enable it in Firefox 33, by changing a preference: Visit <a href="http://kb.mozillazine.org/About:config">about:config</a>, find the preference called <code>devtools.webide.enabled</code> and set it to <code>true</code>.</p>
-</div>
-
-<div class="summary">
-<p>The WebIDE is the replacement for the <a href="/en-US/Firefox_OS/Using_the_App_Manager">App Manager</a>. Like the App Manager, it enables you to run and debug <a href="/en-US/Firefox_OS">Firefox OS</a> apps using the <a href="/en-US/docs/Tools/Firefox_OS_Simulator">Firefox OS Simulator</a> or a real Firefox OS device.</p>
-
-<p>However, it also provides an editing environment for you to create and develop Firefox OS apps, including a tree view of all the files in your app with the ability to edit and save them, and two app templates to help you get started.</p>
-</div>
-
-<p>With the WebIDE, you first <a href="/en-US/docs/Tools/WebIDE#Setting_up_runtimes">set up one or more runtimes</a>. A runtime is an environment in which you'll run and debug the app. A runtime could be a Firefox OS device connected to the desktop over USB, or it could be a Firefox OS Simulator installed on the desktop itself.</p>
-
-<p>Next, you <a href="/en-US/docs/Tools/WebIDE#Creating_and_opening_apps">create an app, or open an existing app</a>. If you're creating a new app you start with a template that includes the directory structure and the minimum boilerplate you need to get started, or a more complete template that shows how to use a privileged API. The WebIDE shows your app's files in a tree, and you can edit and save them using a built-in source editor. Of course, you don't have to use the built-in editor: you can develop your app entirely outside the WebIDE, and only use it for debugging.</p>
-
-<p>Finally, you can <a href="https://developer.mozilla.org/en-US/docs/Tools/WebIDE#Running_and_debugging_apps">install the app in one of the runtimes and run it</a>. You can then open the usual suite of developer tools - the <a href="/en-US/docs/Tools/Page_Inspector">Inspector</a>, <a href="/en-US/docs/Tools/Web_Console">Console</a>, <a href="/en-US/docs/Tools/Debugger">JavaScript Debugger</a> and so on - to examine and modify the running app.</p>
-
-<h2 id="System_requirements">System requirements</h2>
-
-<p>To develop and debug apps using the WebIDE, all you need is Firefox version 33 or later. To test on a real Firefox OS device, you need a device running Firefox OS 1.2 or later, and a USB cable.</p>
-
-<p>You can only use the WebIDE if you're targeting Firefox OS 1.2 or later.</p>
-
-<h2 id="Opening_the_WebIDE">Opening the WebIDE</h2>
-
-<p>In the Web Developer menu, click on the WebIDE entry and the WebIDE opens. You can also use the keybinding Shift-F8:<img alt="" src="https://mdn.mozillademos.org/files/8033/webide-initial.png" style="display: block; height: 560px; margin-left: auto; margin-right: auto; width: 720px;">The dropdown on the left labeled "Open App" lets you open existing apps or create new ones. The dropdown on the right labeled "Select Runtime" lets you select a runtime or set up a new runtime.</p>
-
-<p>The buttons in the middle run, stop, and debug the app: they are only enabled when you have opened an app and selected a runtime.</p>
-
-<h2 id="Setting_up_runtimes">Setting up runtimes</h2>
-
-<p>Under the "Select Runtime" dropdown, runtimes are grouped into three types:</p>
-
-<ul>
- <li><a href="https://developer.mozilla.org/en-US/docs/Tools/WebIDE#Connecting_a_Firefox_OS_device">USB devices</a>: Firefox OS devices connected over USB</li>
- <li><a href="/en-US/docs/Tools/WebIDE#Adding_a_Simulator">Simulators</a>: instances of the Firefox OS Simulator that you've installed</li>
- <li><a href="/en-US/docs/Tools/WebIDE#Custom_runtimes">Custom</a>: use this to connect to the WebIDE using an arbitrary name and port.</li>
-</ul>
-
-<p>The first time you click the dropdown, you might not see any runtimes here:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8043/webide-no-runtimes.png" style="display: block; height: 564px; margin-left: auto; margin-right: auto; width: 723px;">The rest of this section describes how you can add some runtimes.</p>
-
-<h3 id="Connecting_a_Firefox_OS_device">Connecting a Firefox OS device</h3>
-
-<p>Before you can connect a Firefox OS device, there's some setup you have to go through:</p>
-
-<ul>
- <li><strong>check your Firefox OS version: </strong>make sure your device is running Firefox OS 1.2/Boot2Gecko 1.2 or higher. To check the version, go to the Settings app on the device, then <code>Device Information &gt; Software</code>. If you don't have a high enough version, find your device in the <a href="/en-US/Firefox_OS/Developer_phone_guide">developer phone guide</a> and follow the instructions for upgrading.</li>
- <li><strong>enable remote debugging: </strong>in the Settings app on the device, go to <code>Device information &gt; More information &gt; Developer</code>.
- <ul>
- </ul>
-
- <ul>
- <li>Firefox OS 1.3 and earlier: "Remote Debugging" is just a simple checkbox. Check it.</li>
- <li>Firefox OS 1.4 and later: "Remote Debugging" asks you to enable for just ADB, or for ADB and DevTools. Select "ADB and DevTools".</li>
- </ul>
- </li>
- <li><strong>disable Screen lock on your device:</strong> in the Settings app on the device, go to <code>Screen Lock</code> and unchecking the <code>Lock Screen</code> checkbox. This is a good idea because when the screen gets locked, the phone connection gets lost, meaning it is no longer available for debugging.</li>
- <li><strong>if you want to debug certified apps, including built-in apps</strong>: see the section on <a href="/en-US/docs/Tools/WebIDE#Debugging_certified_apps">debugging certified apps</a>.</li>
-</ul>
-
-<div class="note">
-<p><strong>Linux only:</strong></p>
-
-<ul>
- <li>add a <code>udev</code> rules file, as documented in step 3 of this guide to <a href="http://developer.android.com/tools/device.html#setting-up">setting up an Android device</a>. The <code>idVendor</code> attribute to use for the Geeksphone is "05c6", and <a href="http://developer.android.com/tools/device.html#VendorIds">this page</a> lists other <code>idVendor</code> values.</li>
-</ul>
-</div>
-
-<div class="note">
-<p><strong>Windows only:</strong></p>
-
-<ul>
- <li>you need to install drivers, as documented in step 3 of this guide to <a href="http://developer.android.com/tools/device.html#setting-up">setting up an Android device</a>. You can find drivers for Geeksphone devices on the <a href="http://downloads.geeksphone.com/">Geeksphone web site</a>. Windows 8 by default will not let you install unsigned drivers. See this tutorial on <a class="external external-icon" href="http://www.craftedge.com/tutorials/driver_install_windows8/driver_install_win8.html" title="http://www.craftedge.com/tutorials/driver_install_windows8/driver_install_win8.html">"How to install an unsigned driver on Windows 8"</a>.</li>
- <li>if the WebIDE can't see your device after following all the steps, you may have to <a class="external external-icon" href="http://blog.fh-kaernten.at/wehr/?p=1182">edit adb_usb.ini</a>.</li>
-</ul>
-</div>
-
-<p>If there are any other Android devices connected to your computer, disconnect them. Now connect the device to the computer using USB. You should see the device appear under "USB DEVICES":</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8045/webide-select-runtime-keon.png" style="display: block; height: 562px; margin-left: auto; margin-right: auto; width: 710px;"></p>
-
-<p>If you don't see your device, see the <a href="/en-US/docs/Tools/WebIDE/Troubleshooting">Troubleshooting</a> page.</p>
-
-<h3 id="Adding_a_Simulator">Adding a Simulator</h3>
-
-<p><span style="line-height: 1.5;">The <a href="/en-US/docs/Tools/Firefox_OS_Simulator">Firefox OS Simulator</a> is <span style="line-height: 1.5;">a version of the higher layers of Firefox OS</span> that simulates a Firefox OS device, but runs on the desktop</span><span style="line-height: 1.5;">. </span><span style="line-height: 1.5;">It runs in a window the same size as a Firefox OS device, includes the Firefox OS user interface and built-in apps, and simulates many of the Firefox OS device APIs.</span></p>
-
-<p><span style="line-height: 1.5;">This means that in many cases, you don't need a real device to test and debug your app. </span></p>
-
-<p>The Simulator is big, so it doesn't ship inside Firefox but as a Firefox <a href="/en-US/Add-ons">add-on</a>. If you click "Install Simulator" in the Runtimes dropdown menu, you will go to a page from which you can install Simulators for various versions of Firefox OS.</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8039/webide-install-simulator.png" style="display: block; height: 560px; margin-left: auto; margin-right: auto; width: 720px;">You can install as many as you like. Be patient, though: the Simulator is large and may take a few minutes to download. Once you've installed some Simulators you can close this "Extra Components" window, and the Simulators you've installed appear as options in the Runtimes dropdown menu:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8047/webide-select-runtime-keon-simulator.png" style="display: block; height: 559px; margin-left: auto; margin-right: auto; width: 712px;">To learn more about the Simulator, see its <a href="/en-US/docs/Tools/Firefox_OS_Simulator">documentation page</a>.</p>
-
-<h3 id="Custom_runtimes">Custom runtimes</h3>
-
-<p>With a custom runtime you can use an arbitrary hostname and port to connect to the remote device.</p>
-
-<p>Under the hood, Firefox OS devices and Android devices connect to the desktop using a program called the Android Debug Bridge, or <a href="http://developer.android.com/tools/help/adb.html">ADB</a>. By default, the WebIDE uses an add-on called the ADB Helper: this simplifies the process for you by installing ADB and setting up port forwarding so the Firefox desktop tools can exchange messages with the device.</p>
-
-<p>This is convenient in most cases, but sometimes you might want to use ADB outside of the WebIDE: for example, you might be running ADB directly from the command line. In that case you'll connect to the device by specifying a host and port using the <a href="http://developer.android.com/tools/help/adb.html#forwardports"><code>adb forward</code></a> command.<br>
- <br>
- If you then want to use WebIDE to connect as well, you should <a href="https://support.mozilla.org/en-US/kb/disable-or-remove-add-ons#w_how-to-disable-extensions-and-themes">disable the ADB Helper add-on</a> and connect WebIDE using the Custom runtime option, entering the host and port that you passed to <code>adb forward</code>.</p>
-
-<p>Also, the ADB Helper does not yet support connecting to Firefox for Android, so if you want to connect WebIDE to Firefox for Android, you'll need to set up your own port forwarding and use a custom runtime. <a href="/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android">See more about connecting to Firefox for Android using ADB</a>.</p>
-
-<h2 id="Selecting_a_runtime">Selecting a runtime</h2>
-
-<p>Once you've set up a runtime you can select it using the "Select Runtime" menu.</p>
-
-<ul>
- <li>If you select a Simulator, the WebIDE launches the Simulator.</li>
- <li>If you select a Firefox OS device the WebIDE connects to the device. On the device a dialog will ask you to confirm that you wish to connect: press "OK".</li>
-</ul>
-
-<p>Now the "play" button in the center of the WebIDE toolbar is enabled: click it to install and run the app in the selected runtime.</p>
-
-<h3 id="Runtime_actions">Runtime actions</h3>
-
-<p>When a runtime is selected, the Runtimes dropdown menu has three extra items:</p>
-
-<ul>
- <li><strong>Runtime Info</strong>: information on the current runtime</li>
- <li><strong>Permissions Table</strong>: a table summarising <a href="/en-US/Apps/Build/App_permissions">app permissions</a> for the current runtime, indicating, for each API and each <a href="/en-US/Marketplace/Options/Packaged_apps#Types_of_packaged_apps">app type</a>, whether access is allowed (✓), denied (✗), or whether the user is prompted (!)</li>
- <li><strong>Screenshot</strong>: a command to take a screenshot from the runtime</li>
-</ul>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8147/webide-runtimes-menu.png" style="display: block; height: 596px; margin-left: auto; margin-right: auto; width: 789px;"></p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8145/webide-runtimeinfo.png" style="display: block; height: 593px; margin-left: auto; margin-right: auto; width: 753px;"><img alt="" src="https://mdn.mozillademos.org/files/8149/webide-permissions.png" style="display: block; height: 593px; margin-left: auto; margin-right: auto; width: 753px;"></p>
-
-<h2 id="Creating_and_opening_apps">Creating and opening apps</h2>
-
-<p>Under the "Open App" menu you get three options: create a new app, open a packaged app, and open a hosted app:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8049/webide-open-app-empty.png" style="display: block; height: 562px; margin-left: auto; margin-right: auto; width: 723px;"></p>
-
-<h3 id="Create_a_new_app">Create a new app</h3>
-
-<p>Select "New App..." to create a new app. You'll see a dialog offering you a choice between two templates, "Privileged Empty App" and "Privileged App".</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8053/webide-new-app.png" style="display: block; height: 591px; margin-left: auto; margin-right: auto; width: 739px;"></p>
-
-<p>Both templates are from Mozilla's <a href="https://github.com/mozilla/mortar">app template collection</a>, and provide you with the basic structure you need to get started. The "Privileged App" shows how an app can use permissions to load cross-origin content.</p>
-
-<p>Once you've selected a template you'll be asked to name the app and select a directory to store the files, and then the new app is opened in the <a href="https://developer.mozilla.org/en-US/docs/Tools/WebIDE#Editing_apps">project editor</a>.</p>
-
-<h3 id="Open_a_packaged_app">Open a packaged app</h3>
-
-<p>Select "Open Packaged App..." to open a <a href="/en-US/Marketplace/Options/Packaged_apps">packaged app</a>. You'll be asked to select a directory containing the app's <a href="/en-US/Apps/Build/Manifest">manifest</a>, and the app will be opened in the <a href="https://developer.mozilla.org/en-US/docs/Tools/WebIDE#Editing_apps">project editor</a>.</p>
-
-<h3 id="Open_a_hosted_app">Open a hosted app</h3>
-
-<p>Select "Open Hosted App..." to open a <a href="/en-US/Marketplace/Options/Hosted_apps">hosted app</a>. You'll be asked to enter a URL pointing to the app's <a href="/en-US/Apps/Build/Manifest">manifest</a>, and the app will be opened in the <a href="https://developer.mozilla.org/en-US/docs/Tools/WebIDE#Editing_apps">project editor</a>.</p>
-
-<h2 id="Editing_apps">Editing apps</h2>
-
-<p>The project editor provides an environment for editing apps. There's a tree view on the left of all the files in the app: you can add and delete files here using a context menu. There's an editor pane on the right.</p>
-
-<h3 id="The_app_summary_page">The app summary page</h3>
-
-<p>When you first open or create an app, the editor pane is occupied by the app summary page, which is shown below:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8055/webide-new-app-editor.png" style="display: block; height: 625px; margin-left: auto; margin-right: auto; width: 846px;"></p>
-
-<p>You can always get back to the app summary page by clicking on the root of the tree on the left.</p>
-
-<h3 id="Manifest_validation">Manifest validation</h3>
-
-<p>The WebIDE automatically checks the manifest for certain common problems. If it finds a problem it indicates that the app is invalid and describes the problem in the app's summary:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8063/webide-invalid-manifest.png" style="display: block; height: 626px; margin-left: auto; margin-right: auto; width: 847px;"></p>
-
-<p>Of course, you can edit the <a href="/en-US/Apps/Build/Manifest">manifest.webapp</a> file right in the project editor as well.</p>
-
-<h3 id="The_source_editor">The source editor</h3>
-
-<p>The WebIDE uses the <a href="http://codemirror.net/">CodeMirror</a> source editor.</p>
-
-<h4 id="Source_editor_shortcuts">Source editor shortcuts</h4>
-
-<p>{{ Page ("en-US/docs/tools/Keyboard_shortcuts", "source-editor") }}</p>
-
-<h4 id="Code_completion">Code completion</h4>
-
-<p>When editing CSS and JavaScript, the editor provides autocomplete suggestions. CSS autocompletion is always enabled:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8057/webide-css-autocomplete.png" style="display: block; height: 628px; margin-left: auto; margin-right: auto; width: 849px;">To display autocomplete suggestions in JavaScript press Control + Space:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8059/webide-js-autocomplete.png" style="display: block; height: 653px; margin-left: auto; margin-right: auto; width: 867px;"></p>
-
-<h4 id="Inline_documentation">Inline documentation</h4>
-
-<p>The editor also shows inline documentation for JavaScript. Press Shift + Space to see a popup containing documentation for the symbol your cursor is on:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8061/webide-js-inline-docs.png" style="display: block; height: 652px; margin-left: auto; margin-right: auto; width: 872px;"></p>
-
-<p>Clicking the <code>[docs]</code> link in the popup will take you to the MDN page for the symbol.</p>
-
-<h4 id="Saving_files">Saving files</h4>
-
-<p>For changes to your files to take effect you need to save them. Files with unsaved changes get an asterisk next to their name in the tree view, and you can save files using the menu or Control+S (Command+S on Mac OS X).</p>
-
-<h3 id="Removing_projects">Removing projects</h3>
-
-<p>To remove an app from the WebIDE, go to the <a href="/en-US/docs/Tools/WebIDE#The_app_summary_page">app summary page</a> and click "Remove Project".</p>
-
-<h2 id="Running_and_debugging_apps">Running and debugging apps</h2>
-
-<p>When you're ready to run the app, you need to <a href="/en-US/docs/Tools/WebIDE#Selecting_a_runtime">select a runtime from the "Select Runtime" dropdown menu</a>. If you don't have any available runtimes here, find out how to add some in <a href="/en-US/docs/Tools/WebIDE#Setting_up_runtimes">Setting up runtimes</a>.</p>
-
-<p>The "play" button in the center of the WebIDE toolbar is now enabled: click it to install and run the app in the selected runtime:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8065/webide-running.png" style="display: block; height: 718px; margin-left: auto; margin-right: auto; width: 1314px;">To debug the app, click the "Pause" button and the Developer Tools <a href="/en-US/docs/Tools/Tools_Toolbox">Toolbox</a> appears, connected to your app:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8067/webide-debugging.png" style="display: block; height: 688px; margin-left: auto; margin-right: auto; width: 1310px;">Exactly which tools you'll have available depends on the runtime, but you will at least have the basics: the <a href="/en-US/docs/Tools/Page_Inspector">Inspector</a>, <a href="/en-US/docs/Tools/Web_Console">Console</a>, <a href="/en-US/docs/Tools/Debugger">JavaScript Debugger</a>, <a href="/en-US/docs/Tools/Style_Editor">Style Editor</a>, <a href="/en-US/docs/Tools/Profiler">Profiler</a> and <a href="/en-US/docs/Tools/Scratchpad">Scratchpad</a>. Just as in a web page, any changes you make in the tools are visible immediately in the app, but are not persistent. Conversely, any changes you make in the editor pane can be saved straight back to disk, but are not visible without restarting the app.</p>
-
-<h3 id="Debugging_certified_apps_(including_main_process)">Debugging certified apps (including main process)</h3>
-
-<p>You can run the debugger against the simulator, b2g desktop, or a real device.</p>
-
-<p>With the Simulator, if you click on the app dropdown menu while the runtime is selected, you can see and debug not only your app but all apps running in that runtime, including <a href="/en-US/Marketplace/Options/Packaged_apps#Certified_app">certified apps</a>:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8069/webide-debugging-builtin.png" style="display: block; height: 681px; margin-left: auto; margin-right: auto; width: 1302px;"></p>
-
-<p><br>
- However, to debug certified apps on a real device:</p>
-
-<ul>
- <li>the device must be running a development build of Firefox OS 1.2+</li>
- <li>you must enable certified app debugging</li>
-</ul>
-
-<p>To enable certified app debugging, connect to the runtime, and then, in the menu, go to <code>Runtime &gt; Runtime Info</code>. From here, if you see <code>"DevTools restricted privileges: yes</code>", that means certified apps can't be debugged. The path then differs depending on what you are debugging against:</p>
-
-<ul>
- <li>Real device
- <ul>
- <li>If it can be rooted, clicking <code>"request higher privileges"</code> will enable certified apps debugging (Firefox OS will restart). You may need to select your device again in the 'Select Runtime' drop down.</li>
- </ul>
- </li>
- <li>Simulator
- <ul>
- <li>The simulators come with certified debugging enabled by default.</li>
- </ul>
- </li>
- <li>B2G desktop
- <ul>
- <li>Manually edit the B2G desktop client <a href="https://developer.mozilla.org/en-US/Firefox_OS/Using_the_App_Manager#Using_the_B2G_desktop_client">preferences</a> before connecting to enable certified app debugging.</li>
- </ul>
- </li>
-</ul>
-
-<p>Now (or after a restart of the B2G desktop client) in the WebIDE you should see all the certified apps on the device.</p>
-
-<h2 id="Monitoring_performance">Monitoring performance</h2>
-
-<p>If you're interested in the performance of your apps, there are a few ways to measure their impact on the runtime in WebIDE:</p>
-
-<ul>
- <li>The <a href="/docs/Tools/WebIDE/Monitor">Monitor</a> panel offers a good overview of a device's performance. This can help you detect problems, e.g. a sudden, excessive increase in an app's memory usage (leak).</li>
- <li>The <a href="/docs/Tools/Profiler">Profiler</a> tool gives you a way to analyze a single app's footprint in great detail. This is especially useful when investigating a known performance problem.</li>
-</ul>
-
-<h2 id="Troubleshooting">Troubleshooting</h2>
-
-<p>If you have any problems working with the WebIDE, see the <a href="/en-US/docs/Tools/WebIDE/Troubleshooting">Troubleshooting</a> page.</p>
-
-<p> </p>
-
-<p> </p>
diff --git a/files/bn/tools/webide/troubleshooting/index.html b/files/bn/tools/webide/troubleshooting/index.html
deleted file mode 100644
index 34b019da6d..0000000000
--- a/files/bn/tools/webide/troubleshooting/index.html
+++ /dev/null
@@ -1,81 +0,0 @@
----
-title: WebIDE ট্রাবলশুটিং
-slug: Tools/WebIDE/Troubleshooting
-translation_of: Archive/WebIDE/Troubleshooting
----
-<div>{{ToolsSidebar}}</div><h2 id="একটি_Firefox_OS_ডিভাইসের_সাথে_সংযুক্ত_হওয়া">একটি Firefox OS ডিভাইসের সাথে সংযুক্ত হওয়া</h2>
-
-<p>যদি এমন হয় যে, আপনি একটি Firefox OS ডিভাইস WebIDE এর সাথে সংযুক্ত করার চেষ্টা করছেন, কিন্তু সেটি দেখাচ্ছে না, তাহলে এখানে কিছু উপায় বলা আছে, যা আপনি চেষ্টা করতে পারেন:</p>
-
-<ul>
- <li>বর্তমান Firefox OS সংস্করণ: নিশ্চিত করুন যে আপনার ডিভাইসে Firefox OS 1.2/Boot2Gecko 1.2 বা তার পরবর্তী সংস্করণ ইনস্টল করা। সংস্করণ জানার জন্য আপনার ডিভাইসে থাকা সেটিংস অ্যাপ চালু করুন, তারপর Device Information থেকে Software এ ট্যাপ করলেই পেয়ে যাবেন। যদি আপনার যথেষ্ট উন্নত সংস্করণ না থাকে, তাহলে আপনার ডিভাইস <a href="/bn-BD/Firefox_OS/Developer_phone_guide">ডেভেলপার ফোন গাইড</a> থেকে খুঁজে বের করুন এবং আপগ্রেড করার জন্য নির্দেশনা সমূহ অনুসরণ করুন।</li>
- <li>রিমোট ডিবাগিং চালু করুন: সেটিংস অ্যাপে থেকে প্রথমে Device information তারপর More information এবং সেখান থেকে Developer এ গেলে:
- <ul>
- <li>Firefox OS 1.3 এবং তার আগের সংস্করণের জন্য: "Remote Debugging" নামে একটি সাধারণ চেকবক্স পাবেন; সেটাতে ট্যাপ করে টিক দিলেই হয়ে যাবে।</li>
- <li>Firefox OS 1.4 এবং তার পরবর্তী সংস্করণ: "Remote Debugging" আপনাকে জিজ্ঞেস করবে যে, শুধু ADB এর জন্য ইনস্টল করবেন, নাকি ADB এবং DevTools উভয়ের জন্য। এখান থেকে "ADB এবং DevTools" নির্বাচন করুন।</li>
- </ul>
- </li>
- <li>আপনার ডিভাইসে স্ক্রিনলক বন্ধ করুন: ডিভাইসের সেটিংস অ্যাপে, Screen Lock এ যান এবং Lock Screen চেক বক্সে একবার ট্যাপ করে টিক চিহ্নটি তুলে দিন। এটা একটি ভালো বুদ্ধি, কারন যখন স্ক্রিন লক হয়ে যায়, ফোনের সাথে সংযোগও তখন বন্ধ হয়ে যায়। ফলে আর ডিবাগ করতে পারবেন না।</li>
- <li>নিশ্চিত হউন যে Firefox OS ফোনের পাশাপাশি আপনার কম্পিউটারে অন্য কোন অ্যান্ড্রয়েড ফোন সংযুক্ত নয়।</li>
- <li>যে USB কেবল ব্যবহার করছেন, সেটি পরীক্ষা করে দেখুন:
- <ul>
- <li>একবার খুলে আবার লাগাতে পারেন।</li>
- <li>ইউএসবি কেবলটি আপনার কম্পিউটারের অন্য পোর্টে লাগিয়ে দেখুন। আপনার হয়ত পোর্ট পরিবর্তন করা লাগতে পারে।</li>
- <li>অন্য একটি ইউএসবি কেবল ব্যবহার করুন। ফোনের সাথে দেয়া কেবলগুলো অনেক সময় নিম্নমানের হয় এবং মাঝে মাঝে কাজ করেনা।</li>
- <li>ছোট USB কেবল ব্যবহার করে দেখতে পারেন। লম্বা গুলো অনেক সময় ঠিক মতো কাজ করে না।</li>
- </ul>
- </li>
- <li>ডিভাইসের সেটিংস অ্যাপে রিমোট ডিবাগিং বন্ধ করে আবার চালু করে দেখতে পারেন।</li>
- <li>যদি আপনি <a href="https://developer.mozilla.org/bn-BD/docs/Tools/WebIDE#Custom_runtimes">ADB Addon Helper ডিজ্যাবল করে থাকেন</a>, আপনি কি সঠিকভাবে <code>adb forward</code> কমান্ড চালাতে পেরেছেন?</li>
- <li>যদি আপনি লিনাক্স ব্যবহারকারী হয়ে থাকেন, তাহলে নিশ্চিত করুন যে <a href="http://developer.android.com/tools/device.html#setting-up">অ্যান্ড্রয়েড ডিভাইস সেটাপ</a> গাইডের ৩ নং ধাপের বর্ণনা অনুযায়ী একটি udev রুলস ফাইল যুক্ত করেছেন। গিকসফোনের জন্য idVendor অ্যাট্রিবিউট হচ্ছে "05c6", এবং <a href="http://developer.android.com/tools/device.html#VendorIds">এই পাতায় </a>অন্যান্য idVendor মানের তালিকা দেয়া আছে।</li>
- <li>যদি আপনি উইন্ডোজ ব্যবহারকারী হন:
- <ul>
- <li> <a class="external external-icon" href="http://developer.android.com/tools/device.html#setting-up">অ্যান্ড্রয়েড ডিভাইস সেটাপ</a> গাইডের ৩ নং ধাপের বর্ণনা  অনুযায়ী আপনাকে ড্রাইভার ইনস্টল করতে হবে। আপনি গিকসফোন ডিভাইসের জন্য ড্রাইভার <a class="external-icon external" href="http://downloads.geeksphone.com/">গিকসফোনের ওয়েবসাইট</a> থেকে ডাউনলোড করতে পারবেন। ডিফল্টভাবে উইন্ডোজ ৮ সাইন ছাড়া ড্রাইভার ইনস্টল করতে দিবে না। <a class="external-icon external" href="http://www.craftedge.com/tutorials/driver_install_windows8/driver_install_win8.html" title="http://www.craftedge.com/tutorials/driver_install_windows8/driver_install_win8.html">"How to install an unsigned driver on Windows 8"</a> এই টিউটোরিয়ালটি দেখুন।</li>
- <li>যদি উপরোক্ত সব উপায় ব্যবহার করার পরও WebIDE আপনার ডিভাইস দেখতে না পায়, তাহলে আপনাকে <a class="external-icon external" href="http://blog.fh-kaernten.at/wehr/?p=1182">adb_usb.ini সম্পাদনা</a> করা লাগতে পারে।</li>
- </ul>
- </li>
- <li>যদি আপনি EasyTether ব্যবহারকারী (OS X) হয়ে থাকেন, তাহলে আপনাকে EasyTether আন-ইনস্টল বা ডিজাবল করতে হবে: <code>sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext</code></li>
-</ul>
-
-<h3 id="ইচ্ছামত_ডিবাগ_করা_(প্রত্যায়িত_অ্যাপ_বিল্ট-ইন_অ্যাপ_ডিভাইসে_ইতোমধ্যে_ইনস্টল_করা_অ্যাপ)">ইচ্ছামত ডিবাগ করা (প্রত্যায়িত অ্যাপ, বিল্ট-ইন অ্যাপ, ডিভাইসে ইতোমধ্যে ইনস্টল করা অ্যাপ)</h3>
-
-<p>যদি এমন হয় যে আপনি প্রত্যায়িত অ্যাপ, বিল্ট-ইন অ্যাপ বা একটি বাস্তব ডিভাইসে ইতোমধ্যে ইনস্টল করা অ্যাপ ডিবাগ করতে পারছেন না, তাহলে হয়ত আপনি WebIDE এর নিয়ন্ত্রিত ক্ষমতার নিরাপত্তা নিয়মের ভেতর রয়েছেন। আরও জানতে <a href="/en-US/docs/Tools/WebIDE#Unrestricted_app_debugging_%28including_certified_apps.2C_main_process.2C_etc.%29">ইচ্ছেমত ডিবাগ করা (প্রত্যায়িত অ্যাপ, মূল প্রক্রিয়া ইত্যাদি সহ)</a> দেখুন।</p>
-
-<h2 id="অন্যান্য_ব্রাউজারে_সংযোগ_স্থাপন_(ক্রোম_সাফারি)">অন্যান্য ব্রাউজারে সংযোগ স্থাপন (ক্রোম, সাফারি)</h2>
-
-<p>অন্যান্য ব্রাউজার যেমন- ক্রোম, সাফারি এর সাথে WebIDE সংযোগ স্থাপনের জন্য <a href="/en-US/docs/Tools/Firefox_Tools_Adapter">Valence (formerly Firefox Tools Adapter)</a> ব্যবহার করে।</p>
-
-<p>যদি আপনার উপরে উল্লেখিত ব্রাউজারে সংযোগ স্থাপনে সমস্যা হয়, তাহলে <a href="/en-US/docs/Tools/Firefox_Tools_Adapter">Valence page</a> এর সেটাপের ধাপগুলো এবং অন্যান্য নোট সমূহ অনুসরণ করুন।</p>
-
-<h2 id="প্রজেক্ট_লিস্ট_লোড_করা_সম্ভব_হচ্ছে_না">প্রজেক্ট লিস্ট লোড করা সম্ভব হচ্ছে না</h2>
-
-<p>যদি আপনি ফায়ারফক্সের একটি সংস্করণে WebIDE চালু করেন, এবং তারপর একটি পুরাতন সংস্করণে একই প্রোফাইল দিয়ে ব্যবহার করেন, তাহলে আপনি "Unable to load project list" বা "প্রজেক্ট লিস্ট লোড করা সম্ভব হচ্ছে না" এমন ইরর মেসেজ দেখতে পাবেন।</p>
-
-<p>WebIDE যে স্টোরেজ সিস্টেম ব্যবহার করে (<a href="/en-US/docs/Web/API/IndexedDB_API">IndexedDB</a>) সেটা নতুন ফায়ারফক্স সংস্করণের জন্য স্থানান্তর বা পুনরায় কাঠামো তৈরির প্রয়োজন হলে এমনটি হতে পারে। The project list then becomes effectively inaccessible to older versions of Firefox.</p>
-
-<p>No data has been lost, but you will need to keep using the newest version of Firefox that was used with your profile to get the project list back.</p>
-
-<p>If really want to use the older version of Firefox, you can attempt to delete just the project list in the following way, but this is unsupported and could result in the further problems or additional data loss:</p>
-
-<ol>
- <li>Close Firefox</li>
- <li>Find your Firefox profile directory</li>
- <li>Find the <code>storage</code> folder inside the profile directory</li>
- <li>Under some part of this file tree, there should be files and/or directories that start with <code>4268914080AsptpcPerjo</code> (a hashed name of the database)</li>
- <li>Remove any such files and directories</li>
- <li>Start Firefox and WebIDE again</li>
-</ol>
-
-<h2 id="Enable_logging">Enable logging</h2>
-
-<p>You can also enable verbose logging to gather diagnostics:</p>
-
-<ol start="1" style="list-style-type: decimal;">
- <li>Open <a class="external external-icon" href="http://kb.mozillazine.org/About:config">about:config</a>, and add a new preference called <code>extensions.adbhelper@mozilla.org.sdk.console.logLevel</code>, with the string value <code>all</code>, and set <code>extensions.adbhelper@mozilla.org.debug</code> to <code>true</code>.</li>
- <li>In the <a class="external external-icon" href="https://support.mozilla.org/en-US/kb/disable-or-remove-add-ons">Add-ons Manager</a>, disable and then re-enable the ADB Helper add-on.</li>
- <li>Open the <a href="https://developer.mozilla.org/en-US/docs/Tools/Browser_Console">Browser Console</a> and you'll now see console messages prefixed with <code>adb</code>. If the messages don't mean anything to you, <a href="/en-US/docs/Tools/WebIDE/Troubleshooting#Get_help">ask for help</a>.</li>
-</ol>
-
-<h2 id="Get_help">Get help</h2>
-
-<p>Go to the <a class="external external-icon" href="https://wiki.mozilla.org/DevTools/GetInvolved#Communication">#devtools room on IRC</a> and we will try to help.</p>