Changes

Jump to: navigation, search

Mobile/Fennec/Debugging

31 bytes added, 05:47, 19 May 2011
no edit summary
Debugging Fennec can be trickier than Firefox because it uses multiple processes.
For example to debug reftests in fennec on desktop linux the following recipe works:
python runreftest.py --debugger=gdb TEST_PATH/reftest.list
once inside gdb# this will break on fork calls(gdb) catch fork
# this will break on exec fork calls(gdb) catch exec
(gdb) runcatch fork
# the first fork this will be for glx probing and can be ignor(gdb) continuebreak on exec calls
# the next fork is the content process, make sure we follow into it(gdb) set follow-fork-mode child(gdb) continuecatch exec
(gdb) run  #the first fork will be for glx probing and can be ignor (gdb) continue  #the next fork is the content process, make sure we follow into it (gdb) set follow-fork-mode child (gdb) continue  # this will break on the exec (gdb) break some_function_in_the content process  <pre>sdqwd</pre>
Confirm
522
edits

Navigation menu