-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
When debugging a complex multi-process code like Rust compiler unit tests, the current settings set target.process.follow-fork-mode child|parent is too limiting because a compiler test does a tree-like traversal - forking a subprocess which may spawn another subprocess, waiting for the child to finish, and forking another process and waiting for that, etc. If the follow mode is child, it will stop debugging when the first child exits. If it is the parent, it will never go into any child processes.
Thus, it is currently impossible to add a breakpoint to the code and wait for it to be hit - because it might be in the second child process that runs.
Would it be possible for the debugger to re-attach to the parent process once the child exits?
See also