Electrolysis/Debugging: Difference between revisions

Line 80: Line 80:
== To debug both the parent and children ==
== To debug both the parent and children ==


Make sure MOZ_DEBUG_CHILD_PROCESS is set in the environment you'll launch the parent from, and launch the parent process as above.  (Unfortunately, as far as the author knows gud-gdb can't handle multiple gdb sessions ('''TODO: is that true?''').  So to debug child processes, you'll need to pull up a new shell for each and attach to them with good old "gdb attach PID".)
Make sure MOZ_DEBUG_CHILD_PROCESS is set in the environment you'll launch the parent from, and launch the parent process as above.  Unfortunately, at the time of writing this, gud-gdb can't handle multiple gdb sessions.  So to debug child processes, you'll need to pull up a new shell or a new emacs for each and attach to them as described for child processes above.


== More Resources ==
== More Resources ==
Confirmed users
86

edits