Webstorm using Firefox for local debugging

Source: Internet
Author: User
Tags configuration settings


Because of the major changes in the Firefox architecture, remote debugging and standard Webstorm Local debugging are no way to work in Firefox. These steps are available for Firefox 33, 34, and 35 temporary solutions. (in the lake to smell the Zhang Note: I test in 37 can also be used, speculated that 36 should also be no problem)

  1. Allow debugging in Firefox

      1. Open a Firefox browser, click on the toolbar, and then click "Developer" to open the Web Developer tool.

        Choose Toggle Toolbox from the Open Text menu.

      2. In the developer Tools panel that opens, click the Toolbox option on the toolbar and tick the box before I enable remote debugging under Advanced settings.

      3. Click "Developer" again, then click on the Developer toolbar in the Text menu.

      4. In the console that opens at the bottom of the browser, enterlisten <port number>。

        You can specify any port number, but it is recommended that you use 6000 and more high-end ports. You will specify this port in the configuration that is run later

  2. Create a Run/debug configuration:

      1. Click Run in the main menu | Edit Configuration. or press SHIFT+ALT+F10 and select Edit Configuration in the popup menu.

      2. In the Edit Configuration dialog box that opens, click the Add a configured toolbar button, and then select Firefox Remote from the Text menu. Don't be misled by this technical term remotely. Here it refers to the technical details of the reality.

      3. In the Open Run/debug Configuration:firefox Remote dialog box, specify the host where the app is running (it's always localhost) and the port that the debugger will run on it must be the port that you specified when you enabled debugging in Firefox. The default value for this is 6000.

      4. Click OK to save the configuration settings.

  3. Set breakpoints where needed.

  4. Open the HTML file with JavaScript in the editor or in the Engineering tool window and select Firefox in the context selection box in browser. The browser will display the app after executing the code, meaning that the breakpoint you set does not work.

  5. In the Run/debug configuration drop-down box on the toolbar, select a new newly created profile and click the Debug toolbar button. Click OK in the popup dialog box to allow the connection to be established. Select the page with your app from the debug selection surface that pops up.

  6. Refresh the page with your app in Firefox: The page displays the results of the first breakpoint code execution .

  7. In the Debug tool window, as usual: Step through the program, stop and resume code runs, examine it when suspended, view actual HTML DOM, edit the Code, and so on.

English Original: https://www.jetbrains.com/webstorm/help/debugging-javascript.html

After the lake to smell the translation note: currently recommended webstorm with Chrome to debug

Webstorm using Firefox for local debugging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.