iqworks
iqworks

Reputation: 409

Firefox debugger breakpoint not working

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 debug has been working fine.

Upvotes: 24

Views: 18068

Answers (8)

CarpeDiemKopi
CarpeDiemKopi

Reputation: 334

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

enter image description here

The breakpoint vanishes after clicking the eye:

enter image description here

Update:
And another way to blackbox a source:

enter image description here

Upvotes: 0

madox2
madox2

Reputation: 51931

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.

Upvotes: 5

mrcrag
mrcrag

Reputation: 352

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..

Upvotes: 0

donut
donut

Reputation: 9507

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.

Upvotes: 2

FBC
FBC

Reputation: 1132

In my case it was 2 check-boxes to check:

enter image description here

Upvotes: 3

Guybrush Threepwood
Guybrush Threepwood

Reputation: 1266

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.

deactivate breakpoints icon

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.

Upvotes: 38

David Greenfield
David Greenfield

Reputation: 171

This just happened to me in Firefox 60.3.0. The tip about removing the Mozilla folder led me to a better solution, which is to edit the prefs.js file in the Mozilla profile folder. (In my system this was in C:\Users\xxx\AppData\Roaming\Mozilla\Firefox\Profiles\xxx.default)

I deleted all of the lines in prefs.js that began with

user_pref("devtools.

e.g.

user_pref("devtools.toolsidebar-height.inspector", 350);

user_pref("devtools.toolsidebar-width.inspector", 350);

This fixed the problem while preserving all my bookmarks, saved passwords, etc. The lines in prefs.js were recreated when I next ran the debugger.

Upvotes: 17

ukdiveboy
ukdiveboy

Reputation: 63

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.

Upvotes: 1

Related Questions