Written on Jul 13, 2018
add_ac_options disable-optimize
add_ac_options enable-optimize=-Og
rr to debug child processesexport MOZ_DEBUG_CHILD_PROCESS=1rr record -n obj-debug/dist/bin/firefox -no-remote -profile /home/mozilla/gecko/obj-debug/tmp/profile-defaultPPID of the tab/window you want to debug (second column)rr replay -p <pid>(gdb) handle SIGSYS noprint nostoprr to debug main processesrr record -n obj-debug/dist/bin/firefox -no-remote -profile /home/mozilla/gecko/obj-debug/tmp/profile-defaultrr ps, Grad the PID from the first column of the second process (that’s the main thread)rr replay -p <pid>(gdb) handle SIGSYS noprint nostop