Lurker News
I'm @paulrouget. I'm part of the Firefox Developer Tools team (we are working on the builtin tools and Firebug). I believe that the HN community includes a lot of web developers and designers, so I guess you can help us.

We have recently added a bunch of new builtin tools in Firefox (please try Firefox Aurora or Firefox Nightly to see a recent version of these tools). We also redesigned the way we show these tools (screenshot here: http://paulrouget.com/e/toolboxTesting/).
We are now working on defining what should be our next moves, and I'm trying to gather as much feedback as possible.
The current plan is to build a bunch of performance-related tools (see https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.developer-tools/L9vfZ1-smUI), improve the user interface (better theme), make the tools remotable (for mobile development), and drastically improve the WebConsole (see an experiment here: http://paulrouget.com/e/jsterm.v2/).
But we really want to get as much feedback as possible to make sure we're going into the right direction.
What do you think we should add/remove/fix in our tools? Anything you miss from Chrome or Opera? Or anything you haven't seen yet you'll like to see part of the browser?
PS: because a lot of people have raised concern about "cluttering" Firefox: we are considering providing some of these tools only as addons, to keep the Firefox DevTools as simple as possible.

Comments (347) 157 threads

mbell15 replies#
This is a big request:

Improve "design in the browser" capabilities. i.e. pushing CSS/HTML and maybe JS changes made in Dev Tools back to the source files without manual shenanigans in the middle.
I probably waste more time copying CSS / HTML tweak diffs from the browser back into the related source files than anything else with in browser dev tools. Due to the nature of 'losing changes' if I happen to hit refresh or if the page has some automatic polling mechanism I also tend to do this very often as some sort of manual 'save' action.
There have been a couple attempts to do this (http://www.cssupdater.com/ or https://code.google.com/p/backfire/). But, I'd really like to see a standardized protocol for pushing changes to the server such that server side frameworks can implement it appropriately.
For example a server side implementation for Rails needs to understand the asset pipeline to know how the final file was created so it can work its way back to the correct file to save changes to. This also means you probably need source map style support for LESS and SASS also. Also to change HTML template files the server side needs to know how the page was constructed so it can find the correct partial / template to save changes to. Which is probably really hard depending on how much state based conditional rendering there is in your templates, maybe the server side caches the last response and associated state to work around this.

paulrouget1 reply#
A lot of people are asking for that. I guess sourcemap is (part of) what you're describing. We're working with Google on this, and we'll soon have builtin support at least for JavaScript (not HTML/CSS yet).
possibilistic#
This is quite honestly the best new feature we could be given. It's not an easy task, but such a tool could save millions of man-hours.

Mozilla guys: if you implement this--even partially--I'll switch back to Firefox in a heartbeat.

nailer1 reply#
+1. I can't even add an element directly in the Chrome dev tools - you can only edit an existing elements HTML and append something after it.

My kingdom for a '+' button.

mbell4 replies#
You can, sort of.

Right click on an element and choose "edit as HTML" and you can add whatever you want, granted it offers no reasonable formatting, its just a wall of text, not even tabs / line breaks.
It is also broken in that when you do this Chrome rebuilds all the sub elements of what your editing so if there were event hooks or anything like that on the elements they will be gone.

modarts#
Not to mention dragging over text to select it usually results in the entire HTML fragment getting destroyed when Chrome decides that you're actually attempting to drag the text to move it somewhere else.
ephemient#
My workaround is to click an element, then type into console

    $0.appendChild(document.createElement('tagName'))
but yeah, a [+] button would be nice…
nailer#
It really seems like you didn't read my post before you replied to it.
paulirish#
> It is also broken in that when you do this Chrome rebuilds all the sub elements of what your editing so if there were event hooks or anything like that on the elements they will be gone.

This may not be completely true. In Edit As HTML mode every effort is made to retain the original elements. If you move some tags to another location, the real element (and handlers) should actually be retained.

sambeau1 reply#
Just being able to hold down a modifier key to move an element up down left and right would be great. You can do this in one dimension at a time at present but to be able to exactly place something would be a tremendous time saver.
pbhjpbhj#
>You can do this in one dimension at a time at present //

In FF dev tools?

pixelcort5 replies#
If a browser supported PUTting the modified resource back up to the server, we'd be off to a good start. Server-side frameworks could then add functionality to split the modified resource back into the files that created it.
btown1 reply#
Love this idea, it would make source modification a piece of cake for every browser-maker to implement. To allow for compatibility, this feature could be activated only when a X-Source-Modification-Enabled (or something) header is present on the original page. The header's value could even be the (relative) endpoint to call!

The simplest middleware that would pop up would be a diff generator. But with source maps, web frameworks could track what exact source files were used.

mbell#
My crazy idea is to just use git + some sort of source map style overlay on both ends to track changes and pass them back and forth.
timdorr1 reply#
What about pre-processors (SASS, Less) or templating engines (ERB, Haml, Slim)? That would seem to be a huge task to "un-pre-process" an asset. Going backwards is immensely difficult. These are not easily reversible processes.

Instead, why not make something like IntelliJ/RubyMine/WebStorm/etc.'s Live Edit plugin a native part of the browser. Allow the asset pipeline to tell the browser it has changes available, rather than try to have it regurgitate all the processed assets. That would be relatively easy to add and very straightforward to implement.

pedalpete#
Your Live Edit idea is a good one, but I think the assumption about "un-pre-processing" would be part of the pre-processing development tools understanding what was being pushed to them, therefore, the need for an open standard as has been alluded to above.
Ironlink#
I'd be happy even if this was limited to the local file system! I've already got build and deployment set up, and modifying the web servers seems like a hassle.
yesbabyyes#
It seems to me, that with source maps in the browser, the browser should be able to PUT the original source file, with the correct file hierarchy. So, downloading assets.min.js, editing models/Foo.coffee, PUTting models/Foo.coffee.

That would be really something.

paddy_m#
A lot of these ideas could be supported via a proxy system. Something like charles http://www.charlesproxy.com/ on steroids. If you wanted to edit yahoo.com , you would checkout your local repo, have charles point to the local repo, and then your on the fly css/js fixes would go to your local repo. Yahoo's server wouldn't have to support it.
the_french#
If you could somehow get sourcemaps for haml/sass/whatever it would make debugging css/html in the browser so much easier when working with serverside templates.
callmevlad3 replies#
(Disclaimer: I'm working on http://www.webflow.com to try to solve this exact problem.)

I've been thinking about this issue a lot over the last year, and it's really as hard as you state (and then some). We ended up having to create our own supersets of the DOM/CSSOM in order to keep track of individual elements/selectors as they are created/removed/changed. I would be very surprised (and pleased) if Mozilla was able to implement this in a way that works without lots of additional/manual inputs. If you think JS source maps are a hard problem to solve, I'd say this one is at least an order of magnitude harder.

Arelius1 reply#
I'm not sure I would say that JS source maps are a hard problem to solve.
callmevlad2 replies#
Fair point. However, it has taken years to get to where we are today (CoffeeScript just shipping support, limited browser support), so it doesn't seem to be an easy problem either.

Continue this thread — 2 replies

codegeek2 replies#
I tried to enter my email address to get notification of your launch. Nothing happened when I clicked the button (using IE 8)

Continue this thread — 2 replies

Continue this thread — 1 more reply

Continue this thread — 8 more replies

oneandoneis25 replies#
I have to be honest - I find the developer tools a pain: They aren't even close to replacing Firebug, yet they're more obtrusive. So I can't stop using Firebug, and I can't remove the unwanted built-in menu options.

So for me personally, what I'd really like to see is either one of:
- Match Firebug feature for feature
- Allow for the dev tools to be completely removed from the interface
Sorry, but it really does come down to those two: Whilst the Dev Tools can't replace Firebug, I won't use them. So either allow me to get rid of them, or allow me to switch 100% to them.
Sorry it's not more constructive, but I've no interest in having to juggle between two different debug tools because they both have awesome features. So I don't care what amazing new stuff you might be lining up, I won't use them until all of the functionality I use in Firebug is also available in FF's builtins.

steffoz#
Couldn't agree more on this.
Su-Shee#
My needs exactly.
paulrouget3 replies#
> They aren't even close to replacing Firebug

That's why we still work on Firebug :)
> yet they're more obtrusive
It should be better in Firefox 21.
> I can't remove the unwanted built-in menu options.
Firebug allows you to do that. But seeing the number of comments about this specific issue, I think we can do something smarter.
> Sorry it's not more constructive
It's actually a great comment :)

OmarIsmail2 replies#
> That's why we still work on Firebug

To be quite frank, this is really ridiculous to me. Why in heck are there TWO separate developer tools for one browser that are both in-house? Supporting both tools means that neither one moves as quickly, and there's a ridiculous amount of confusion as to which one to use.
Imagine the noobie developer that has cut their teeth on the elegant Chrome dev tools. Now they need to do some Firefox compatibility work and the first thing that happens when looking at the documentation they see both "Firefox dev tools" and "Firebug" being referenced, each with different use cases and slightly different functionality.
I don't think any other issue is matters as much until you can solidify your efforts and officially support just one set of tools. Once you do that, then I think it's worth talking about all the other improvements that need to be made.

robin_reala2 replies#
Firebug isn't in house, it just has contributions from Mozilla employees.

Continue this thread — 2 replies

campd1 reply#
> To be quite frank, this is really ridiculous to me. Why in heck are there TWO separate developer tools for one browser that are both in-house?

I tried to clarify this in another comment: https://news.ycombinator.com/item?id=5326873 - let me know if I can clarify further.

Continue this thread — 1 reply

fletchowns#
Why do both Firebug and the built in tools exist, if you guys are committing to both? Why not just put everything behind Firebug?

One thing I don't like about the Firefox debug tools is that they are split up into different tools. Developer Toolbar, Web Console, Debugger, Error Console. Why do we need all these to be separate?

vsync#
> > I can't remove the unwanted built-in menu options.

> Firebug allows you to do that.
Please please tell me how to do this. I want the "Web Developer" menu gone. I want Firebug as a first-class entry in the Tools menu again. And while you're at it, it would be really nice to have "View Source" and "View Page Info" in the View menu again.
Perhaps I'm a little bitter, considering I saw the DOM Inspector ripped out of Firefox, relegated to Firebug, kicked around, and now that Firebug is awesome, I see weird versions of a Firebug subset getting in the way. Why couldn't it be part of the browser, and why not just put Firebug in the browser if you want it back in?

criley1 reply#
Firebug has a "disable built in tools" feature that prevents Inspector from loading already.
cllns1 reply#
Btw this is done by opening about:config and setting devtools.inspector.enabled to false
darkstalker#
Firebug key is "extensions.firebug.hideDefaultInspector"
joecorcoran1 reply#
I couldn't agree with this more. I work primarily in Chrome and find it very frustrating nowadays when I have to switch to Firefox to debug. Back in the days when Firebug was the only show in town, I loved working in Firefox. Dev Tools gets in the way.

I appreciate the flashy experiments like Firefox Command Line but there's little chance of them entering into my everyday workflow unless I have the chance to learn them properly. I won't get the chance to learn them properly until I reach for Firefox as my main development browser.
On another note: The Chrome Network panel is invaluable to me and streets ahead of the Firebug Net panel. I find it hard to explain why I prefer it as the features are fairly similar, but the experience is much better. Maybe it's about the layout and clarity vs. density of information.

Continue this thread — 1 reply

JoeCortopassi19 replies#
Honestly, the absolute best thing you could do for any dev, is lighten the footprint FF currently has on my ram, and continue to improve the api for add-ons/plugins. The more stable, extensible and fast FireFox is, the more useful I will find it for development. But if more kludge is added to it, and it continues to get slower/bigger, the less likely I am to continue to use it, regardless of what amazing plugins are available (FireBug, Web Developer Tool Bar, etc)

If you are just looking at what's best to add to the browser itself, just look at the plugin market to see what's in wide use.

Continue this thread — 19 replies

sisk8 replies#
Hey Paul. First off, thanks for reaching out to the community like this.

A few things:
Visualized event bindings. Would be awesome to have a visual indicator of event bindings right on the page. Color-coded bounding boxes drawn around elements with a label denoting the event type. Clicking on that box (or label in the case of an element with multiple bindings or nested elements with bindings) would direct you to the code that does the binding.
An aggregate repaint view. Chrome lets me view repaints but it clears after every one. If I have a method that is doing a lot of dom manipulation, I have to step through the code to view all of the repaints. Would be great to have the repaint bounding boxes drawn with a low opacity background so that I could see (and clear out) an aggregate view (with highly redrawn areas having higher opacity due to there being multiple layers).
An intelligent debugger that would automatically step over certain files (selectable per debugging session). I occasionally want to step into jQuery but less often than not. I know I can step over those methods but would be great if I could just keep stepping in without accidentally stepping into something when I don't want to.
I'll edit this as I think of more.
EDIT:
Breaking on navigation or on a particular request in order to manipulate headers. Breaking on the response from those requests for the same reason (plus manipulating the body).
The timeline and profiles sections in Chrome are under-utilized but infinitely useful. Anything close to those would be much appreciated.
Throw warnings for potentially orphaned event listeners. Granted, the number one offender recently introduced methods to address this (backbone's #stopListening) but it's still a easy mistake to make. This might bleed into too much hand-holding and open up a can of worms but just a thought.
Throw warnings for overloaded event listeners that fire a lot. Like the last suggestion, this may be heading in a direction you don't want to go in (educating the developer by means of the dev console) but, all too often, I find pages that overload, e.g., the scroll event. If there was some way to inform the developer of this potential problem, I think the web at large would greatly benefit. Perhaps this and the last suggestion would better reside in an auditing section?

Continue this thread — 8 replies

Load more comments