---
title: Publishers.Breakpoint
framework: combine
role: symbol
role_heading: Structure
path: combine/publishers/breakpoint
---

# Publishers.Breakpoint

A publisher that raises a debugger signal when a provided closure needs to stop the process in the debugger.

## Declaration

```swift
struct Breakpoint<Upstream> where Upstream : Publisher
```

## Overview

Overview When any of the provided closures returns true, this publisher raises the SIGTRAP signal to stop the process in the debugger. Otherwise, this publisher passes through values and completions as-is.

## Topics

### Creating a breakpoint publisher

- [init(upstream:receiveSubscription:receiveOutput:receiveCompletion:)](combine/publishers/breakpoint/init(upstream:receivesubscription:receiveoutput:receivecompletion:).md)

### Declaring supporting types

- [Publishers.Breakpoint.Output](combine/publishers/breakpoint/output.md)
- [Publishers.Breakpoint.Failure](combine/publishers/breakpoint/failure.md)

### Inspecting publisher properties

- [upstream](combine/publishers/breakpoint/upstream.md)
- [receiveSubscription](combine/publishers/breakpoint/receivesubscription.md)
- [receiveOutput](combine/publishers/breakpoint/receiveoutput.md)
- [receiveCompletion](combine/publishers/breakpoint/receivecompletion.md)

## Relationships

### Conforms To

- [Publisher](combine/publisher.md)

## See Also

### Debugging

- [Publishers.HandleEvents](combine/publishers/handleevents.md)
- [Publishers.Print](combine/publishers/print.md)
