Last active
March 17, 2016 15:28
-
-
Save bgrins/6595824 to your computer and use it in GitHub Desktop.
Start firefox in a loop, allowing you to quit and have it auto rebuild devtools and restart.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start firefox in a loop, allowing you to quit and have it auto rebuild devtools and restart. | |
if [ -f mach ]; | |
then | |
echo "mach exists. Starting loop." | |
trap "exit" SIGHUP SIGINT SIGTERM | |
while true | |
do | |
./mach build faster | |
./mach run --devtools --jsconsole -P dev | |
done | |
else | |
echo "mach does not exist in current directory. Bailing out." | |
fi |
Is there a flag for opening up the devtools inspector instead of the js console if I wanted to modify this a bit?
@helenvholmes you can use --jsdebugger
to open Browser Toolbox
It's nice to add a cd
at the top to move into the folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That helps, for sure.
One change I'd make though is build with
./mach build browser/devtools
cause that's what I end up doing 90% of the time. And for the other 10%, I could just ctrl+C and build manually.Also, it would work at first without
#!/bin/sh
at the top.Thanks!