fun detached(): Flow<DetachedEvent>
Fired when remote debugging connection is about to be terminated. Contains detach reason.
Official doc