9 ms·
Firefox Debugger
- melicerte 9y agoSad to see a post by Mozilla only referencing Mac and Windows shortcuts to start the debugger. Most of the web developers I know are using Linux for web development, including javascript (some are using MacOS, none Windows). On Ubuntu, the debugger is started by using <CTRL><SHIFT>S (like Windows actually).
- yorwba 9y agoAre there any shortcuts on Linux which are different from those on Windows by default?
- gschier 9y agoI agree. As a Linux user I always just assume they are the same as Windows.
- giancarlostoro 9y agoUnless the Desktop Environment interferes with Firefox shortcuts. I've ran into oddities where a DE has hijacked a shortcut from happening, but I can't off the top of my head think of a specific case, I just remember it happening. Not on standard Ubuntu with Firefox though.
- bovine3dom 9y agoOpening the downloads window is bound to <C-j> on one and <C-S-Y> on the other. I can never remember which is which.
- blauditore 9y agoHardly any. I've been interchangeably using the two OS' for a couple years now, and the only difference in Firefox shortcuts (general, not just dev tools) I've noticed is the one for jumping to the nth tab: It's Ctrl+<number> under Windows and Alt+<number> under Linux (at least Ubuntu with Unity or Gnome).
- pjmlp 9y agoI don't know any Web developers using Linux on their desktops, as company policy requires Windows desktops. Linux is only used for Java based backends, when deploying into production. With .NET deployments being done on IIS, even with .NET Core. Some of the designers are using Photoshop on macOS. Anecdote data.
- robin_reala 9y agoIf we’re doing anecdata, then every web developer I know is on Macs, apart from those at the company I’m consulting for at the moment who have mostly standardised on Windows.
- pjmlp 9y agoThat was my point, each one has a different OS scenario depending where in the world we live on, the policies at workplace and customer sites.
- bkor 9y agoIf someone says that Linux should be included and mentions he knows a lot of web developers using Linux, then his added comment is relevant. Windows instructions were already included so your reply wasn't needed and I assume you didn't understand the Linux reply.
- pjmlp 9y agoI took it as Web devs only use Linux kind of.
- giancarlostoro 9y agoDepends on where you work. I work at a primarily Linux shop. I'm one of 3 people using Windows, compared to everyone else which are using Ubuntu and only one person is using Mac. Although in any regard, I find usually unless the Desktop Environment on Linux interferes most "Windows" commands work with Firefox on Linux. Oh and I'm usually dual-booting, so I'm either on Ubuntu or Windows whenever I'm doing web development. Linux isn't just a distribution platform, it's also sensibly a development platform. I rather work on the system I'm building for if and when possible. Edit: I use .NET Core and while I have done it from Windows most of my time in the past few months, I also do code in .NET Core from Mac and Ubuntu (more Ubuntu than Mac). It works good enough so long as you use Visual Studio Code for debugging.
- bjpbakker 9y ago> Sad to see a post by Mozilla only referencing Mac and Windows shortcuts to start the debugger. Most of the web developers I know are using Linux ... Maybe because the shortcuts will be (slightly) different across the various Linux desktops (desktop environments and Linux distributions). There is not one Linux desktop like there's one macOS or one Windows.
- Vinnl 9y agoI'm quite sure Firefox-specific shortcuts are independent of DE.
- callahad 9y agoThere are only minor differences between the Windows and Linux shortcuts. See https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perf... for a full list.
- molsson 9y agoI tried to use the Firefox debugger recently, but I could find where you set "event listener breakpoints" (e.g. a breakpoint that stops whenever a click handler runs, regardless of which element was clicked). Some documents seemed to suggest that Firefox has this feature but I tried multiple versions of Firefox (including fiddling with the "new debugger frontend" flag in about:config) but I just couldn't find it anywhere?
- dessant 9y agoSet about:config?filter=devtools.debugger.new-debugger-frontend to false, then reopen the debugger and expand the right pane, the Events tab should be there: https://i.imgur.com/GLGrc7y.png https://i.imgur.com/GLGrc7y.png.
- KwanEsq 9y agoAnd for those curious, here's the issue for bringing the feature back in the new debugger: https://github.com/devtools-html/debugger.html/issues/4750 https://github.com/devtools-html/debugger.html/issues/4750
- tambourine_man 9y agoHope there's a light color scheme as well
- masklinn 9y agoHere's something which is still missing from both Firefox and Chrome debuggers: "tracing" breakpoints. That's one of the few nice/advanced features from Xcode and Safari, aside from making a breakpoint conditional you can: * skip it the first n times (default: 0) * make it non-breaking * associate various actions which are executed if the breakpoint "triggers" (the condition matches) even if the breakpoint is non-breaking, in Safari these actions are "Log Message" (formatted plain text), "Evaluate" (arbitrary javascript code), "Play Sound" (beep on every tripping of the breakpoint) and "Probe Expression"[0]: https://webkit.org/blog/5435/breakpoint-options/ https://webkit.org/blog/5435/breakpoint-options/ [0] a special kind of table logging which integrates with the debugger rather than the (separate) console tab
- 10000100001010 9y agoYou can at least both "Log Message" and "Evaluate" in Chrome with conditional break points. Calling console.log is falsy, so calling it from conditional break points just causes it to log the message (you also have access to any variables in scope of the breakpoint that you can use to build the message). You can do the same thing with executing random JavaScript. Just put the statement and add && false to make sure it always returns false.
- masklinn 9y ago> You can at least both "Log Message" and "Evaluate" in Chrome with conditional break points. You can obviously do that in any browser, it's just inflexible, ugly, error-prone and inconvenient.
- 10000100001010 9y ago¯\_(ツ)_/¯ I rarely have issues with it
- Vinnl 9y agoIn fact, the linked tutorial addresses how to do exactly that in Firefox: https://mozilladevelopers.github.io/playground/debugger/04-conditional-breakpoints https://mozilladevelopers.github.io/playground/debugger/04-c...
- polack 9y agoSlightly OT; What's the "Developer Edition"? > Build, test, scale and more with the only browser built just for developers. This is the only description I could find on their website. What's the difference to the normal version?
- agumonkey 9y agodark theme... and maybe more
- kibwen 9y agoAll the usual releases of Firefox also ship with a dark theme these days. Menu > Customize > Themes > Dark.
- agumonkey 9y agoyes, I meant by default. Still curious about what's special about the dev edition. some preconfigured dev-friendly things ? like more verbose logging ... a separate release channel between nightly and stable ?
- callahad 9y agoDevEdition is our fourth release channel, along with Stable, Beta, and Nightly builds. The engine is generally based on Beta, but we can ship features to DevEdition separately from mainline Firefox. For example, we can ship new developer tools to that channel before they land in Beta, it runs in its own separate profile by default, we allow Developer Edition to disable the add-on signing requirement, etc.
- Vinnl 9y agoApart from giving you access to all these features, being based on the beta also means that you can discover potential breakage in new Firefox versions before those hit the general public.
- sudeepto_dutta 9y ago
- JeanMarcS 9y agoSince version 57 I have a strange behavior in the debugger (debian 9) : there is a line difference between where I click and the line selected. For a breakpoint I have to click the line above, idem for getting var values.
- shmerl 9y agoIs there any way to restore older dark theme for Firefox developer tools? I mean more metallic looking. The new one is too black.
- bugmen0t 9y agoClick the cog icon, top-right for DevTools options. Available themes are Dark, Light, Firebug.
- shmerl 9y agoCompare this new dark to one that was there a few versions back. I'm talking about the older one. Example: https://support.cdn.mozilla.net/media/uploads/images/2016-09-06-12-44-45-698e18.png https://support.cdn.mozilla.net/media/uploads/images/2016-09...
- deltaprotocol 9y agoFully agree with you. The old dark theme feels more comfortable (less contrast between colors). Each and every time I open the devtools now this thought crosses my mind.
- shmerl 9y agoI suppose we should file a bug about bringing it back.
- wldcordeiro 9y agoThe old theme had issues with accessibility due to that lessened contrast. There were some plans and PoC code made for custom theming though.
- jpkeisala 9y agoHow does this compare to Chrome Developer Tools?
- apetresc 9y agoExtremely similar.
- starik36 9y agoIt's similar if you look skin deep. Differences emerge once you start using it on daily basis. The coolest thing FF has over Chrome is the little [ev] icon next to an element that shows what events are connected to it. Saves me lots of time trying to track things down. The coolest thing Chrome has over FF is that stepping through code is so much faster. There is no lag at all, while there is one in FF. It also has a "Search All" mode where it will look through all your code (html, js, css) to find a string.
- Macha 9y ago> It also has a "Search All" mode where it will look through all your code (html, js, css) to find a string. This feature is called "Search Sources" in Firefox. https://imgur.com/U515D8X https://imgur.com/U515D8X
- starik36 9y agoIt's there - sure. But it doesn't work well. Example comparison between Firefox & Chrome. https://i.imgur.com/BFejDaf.png https://i.imgur.com/BFejDaf.png
- EGreg 9y agoHow about breakpoints on mutation or deletion of node or changed attributes? Like Chrome.
- aviaro 9y agoGh
- aviaro 9y agoThe thing I'd like to see is the ability to remove/edit cookies.
- Macha 9y agoIt's there. Storage > Cookies. If you don't see a storage tab, you may need to turn it in the DevTools settings.
- wyattjoh 9y agoWish I didn't have to open Chrome to view websocket frames though. Firefox does detect that a WS connection was made, it just can't inspect it.
- a_humean 9y agoThis is also a big barrier for me using firefox in development, and pre-v57 Firefox used to have an extension for websockets that was nice, but its gone now with the new web extension APIs.
- vanderZwan 9y agoI have a similar thing but with profiling JS performance: if you profile a page in Chrome and then inspect the source code, it gives estimates of seconds spent per line of code. Firefox does not have this. Being able to detect which function is the bottleneck is great, but being able to then figure out where the time is spent inside that function can be very enlightening too.
- robin_reala 9y agoThat‘s being worked on in Q1: https://news.ycombinator.com/item?id=15695910 https://news.ycombinator.com/item?id=15695910
- jadbox 9y agoDoes it have Chrome's async callstack stacktrace feature? It's hard to live without it now.
- prokaktus 9y agoFirefox Debugger is amazing, but I have some problems with performance. If I enable DevTools, then entire browser (other tabs too) hanging for 1-2 minutes while page with DevTools is reloading. I think it may be because a lot async calls were performing, about couple hundreds (we use RequireJS and every sourcefile loaded through different request).