Instance Method

breakpointOnError()

Raises a debugger signal upon receiving a failure.

Declaration

func breakpointOnError() -> Publishers.Breakpoint<Publishers.TryComparison<Upstream>>

Return Value

A publisher that raises a debugger signal upon receiving a failure.

Discussion

When the upstream publisher fails with an error, this publisher raises the SIGTRAP signal, which stops the process in the debugger. Otherwise, this publisher passes through values and completions as-is.