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=1
rr record -n obj-debug/dist/bin/firefox -no-remote -profile /home/mozilla/gecko/obj-debug/tmp/profile-default
PPID
of the tab/window you want to debug (second column)rr replay -p <pid>
(gdb) handle SIGSYS noprint nostop
rr
to debug main processesrr record -n obj-debug/dist/bin/firefox -no-remote -profile /home/mozilla/gecko/obj-debug/tmp/profile-default
rr 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