Jason and I are working on moving the debugger to be HTML/React/Redux. A
project with this heavy development really makes me want to solve our HTML
development workflow. And that means: develop it totally as a normal
webpage. It's just an HTML file that you can open and debug with Cmd+Alt+I.
I extracted out the cool parts of devtools.html and made them into a
module:
https://github.com/jlongster/ff-devtools-libs. I published it to
npm so you can just do `npm install ff-devtools-libs`, and then some
webpack module aliasing and it works. Read the README for more info.
(This is just an experiment, but it solved our debugger workflow)
The core thing is a WebSocket transport. I only made sure the
DebuggerClient is working, but no reason we can't get other stuff to work
too. With a few lines of code I can connect to a remote debugging instance.
You need to run a proxy server to get this to work.
There are other dependencies as well. The idea is if you code against this
lib, you can "drop in" your code into the Firefox env and it will work the
same. I think it's a neat idea: even if we don't use webpack in production,
we might be able to support that environment for this workflow.
Lots to figure out (l10n/themes/etc) but I know many of you are working on
similar things.
- James