Firefox is ready for the modern dev?

Daniele Scasciafratte, Mozilla Reps, Co Founder/CTO Codeat

Firefox is ready for the modern dev?

Daniele Scasciafratte @Mte90Net, Mte90.Net

It's me, Mario ehm Daniele!

Me

How it's done?

Handmade & Crafting

Destroy it

Show me the settings!

The best way to start

Inspector


Ctrl + Shift + I or left button "Inspect element" https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector
Daniele, Don't forget to show the contextual menu!

Useless Rules


Whitespace Nodes


Event bubble


The tooltip show the Javascript code and not the wrapper generated from jQuery

Screenshot the selected node

JSON Source View

Filter Editor

Font used underlined


Font panel with preview


Switch unit size

Shape path tool

Drag & Drop the DOM

Right menu

Highlight all elements by selector

Toggle class quickly

Grid Tool

Animation Editor

Animation proprierty

Geometry Editor

Shadow DOM

Style Editor

Support for VIM/Emacs/Sublime Text


On about:config set devtools.editor.keymap as vim or emacs or sublime text

SourceMaps Support

Responsive View

Media query


Network Throttling


Console

Tips for the console

If you have an element currently selected in your Inspector, you can use the reference $0 to call it within your code. For example, to see the elements' contents you would type $0.innerHTML.
For previous you can use temp0 and so on.

To access to the document.querySelectorAll you can use $$.
To access to the document.querySelector you can use $.
To access to the previous value returned in console $_.

To copy the HTML of object you can use copy($0).
To inspect an object inspect($0).

Console.group()


JavaScript Errors


JavaScript Debugger

Debugger method


Pinned Breakpoints also on code changes


JavaScript Debugger Conditional


Search on the project


JS Framework detection


Debugger.html

debugger.html is a hackable debugger for modern times, built from the ground up using React and Redux.

Mozilla created this debugger for use in the Firefox Developer Tools. We hope to not only to create a great debugger that works with the Firefox and Chrome Debugging Protocol but development community that can embed this debugger in your own projects with tools like NPM.

https://github.com/devtools-html/debugger.html

Debugger.html


Network Stack Trace


Network MDN Links


Compare perfomance of cache vs no-cache

Profiler

Storage

Scratchpad



DevTools Extensions

About:debugging


WebAssebly Explorer

Link

Daniele Scasciafratte | @Mte90Net | Slides: mte90.tech/Talk-DevTools