Firefox debugger breakpoint not working

前端 未结 8 1308
心在旅途
心在旅途 2020-12-17 10:00

When I click on a line to set a break point, the break point line gets highlighted, then the break point highlight disappears.

Other than that, Firefox developer de

相关标签:
8条回答
  • 2020-12-17 10:07

    I just encountered the same problem - Firefox Quantum 60 on Ubuntu.

    Solution for me was to delete the ~/.mozilla folder for my account. Lost all my bookmarks, history, settings, etc., but can now set breakpoints again.

    0 讨论(0)
  • 2020-12-17 10:09

    I just stumbled across a similar problem. In my case, it was the eye on the lower left of the debugger window.

    The breakpoint vanishes after clicking the eye:

    Update:
    And another way to blackbox a source:

    0 讨论(0)
  • 2020-12-17 10:10

    I my case I have mistakenly enabled 'Blackbox source' on a file (in right click menu). When I disabled it then the breakponts works again.

    0 讨论(0)
  • 2020-12-17 10:11

    This might help people in the future without having to modify any js file:

    Have you clicked the Deactivate breakpoints button? Pressing this will toggle breakpoints on/off.

    If the icon is in blue, it means the breakpoints will be de-activated.

    Note: I have noticed that in some sessions the toggle is activated although not blue, a refresh of the page solved this.

    0 讨论(0)
  • 2020-12-17 10:19

    Also, check the console for errors. I've experienced this issue (can't set a breakpoint) when there is an error elsewhere in the page..

    0 讨论(0)
  • 2020-12-17 10:25

    I ran into this problem, or a variant of it as well. For me, it was because webpack was defaulting to setting devtool to "eval". This broke stopping at breakpoints in Firefox for me. Changing that setting to "source-map" resolved the issue, though I suspect most other non-eval options would work fine as well.

    I noticed this because I looked in the generated JS file and noticed everything was put into eval() calls.

    0 讨论(0)
提交回复
热议问题