Electrolysis/Debugging: Difference between revisions

(reusing the same gdb session)
Line 65: Line 65:


'''WARNING''': if the first time you run firefox after a rebuild is from within gdb, gdb will crash when firefox restarts itself.  You can stop firefox from restarting itself by setting the NO_EM_RESTART environment variable.  Or you can just run firefox once from the shell, outside of gdb.
'''WARNING''': if the first time you run firefox after a rebuild is from within gdb, gdb will crash when firefox restarts itself.  You can stop firefox from restarting itself by setting the NO_EM_RESTART environment variable.  Or you can just run firefox once from the shell, outside of gdb.
'''WARNING''': if you send an interrupt to the terminal (^C), it will send a SIGINT to all processes attached to that terminal.  gdb will catch this signal for the parent process and pause it, but, if there are no debuggers attached to child processes, then they will terminate.  To only interrupt the parent process, either "kill -INT [PID]" in a separate shell, or start the application without the debugger and then attach the debugger from a separate terminal.


== To debug child processes only ==
== To debug child processes only ==
Confirmed users
85

edits