Skip to content

Instantly share code, notes, and snippets.

@bgrins
Last active March 17, 2016 15:28
Show Gist options
  • Save bgrins/6595824 to your computer and use it in GitHub Desktop.
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.
# 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
@reepush
Copy link

reepush commented Dec 5, 2015

@helenvholmes you can use --jsdebugger to open Browser Toolbox

@jasonLaster
Copy link

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