gatherFibers

fun gatherFibers(fibersProvider: () -> Collection<A_Fiber>)

For every existing fiber that isn't already captured by another debugger, capture that fiber with this debugger. Those fibers are not permitted to run unless this debugger says they may. Any fibers launched after this point (say, to compute a print representation or evaluate an expression) will not be captured by this debugger.

Note that this operation will block the current thread (which should be a UI-spawned thread) while holding the runtime at a safe point, to ensure no other fibers are running, and to ensure other debuggers don't conflict with this one.

Parameters

fibersProvider

A nullary function that will be executed within a safe point to produce the collection of fibers to be debugged. Already-terminated fibers will be automatically excluded.