Electrolysis/Debugging: Difference between revisions

→‎To debug child processes only: added note about MOZ_DEBUG_CHILD_PAUSE
(→‎Debugging E10s: updated environment variables for debugging)
(→‎To debug child processes only: added note about MOZ_DEBUG_CHILD_PAUSE)
Line 71: Line 71:
The same gdb session can be used to debug subsequent child processes.
The same gdb session can be used to debug subsequent child processes.
However, even if the previous process has exited, an explicit "detach" is required before the next "attach [NEWPID]" to persuade gdb to reread the shared library mappings so that symbols have the right addresses.
However, even if the previous process has exited, an explicit "detach" is required before the next "attach [NEWPID]" to persuade gdb to reread the shared library mappings so that symbols have the right addresses.
Note: the MOZ_DEBUG_CHILD_PAUSE environment variable added to distinguish between a pause and JIT debugging on Windows can also be used. It has the same effect as MOZ_DEBUG_CHILD_PROCESS.


== To debug both the parent and children ==
== To debug both the parent and children ==
284

edits