Raises a debugger signal upon receiving a failure.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Combine
Declaration
func breakpointOnError() -> Publishers.Breakpoint<Publishers.Try Last Where<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.