# Allow enabling/disabling breakpoints \(\#27280\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d70ac64fe4100f98839c29328112cc9791023a99)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d70ac64fe4100f98839c29328112cc9791023a99

Requested commit: d70ac64fe4100f98839c29328112cc9791023a99

Commit: d70ac64fe4100f98839c29328112cc9791023a99

Tree: 3b471dde2a256ffcd1058009b0bce2e278532507

Author: Anthony Eid

Committer: GitHub

## Message

```
Allow enabling/disabling breakpoints (#27280)

This PR adds the ability to enable/disable breakpoints. It also fixes a
bug where toggling a log breakpoint from the breakpoint context menu
would add a standard breakpoint on top of the log breakpoint instead of
deleting it.

todo: 
- [x] Add `BreakpointState` field Breakpoint that manages if a
breakpoint is active or not
- [x] Don't send disabled breakpoints to DAP servers - in progress
- [x] Half the opacity of disabled breakpoints - in progress
- [x] Add `BreakpointState` to database
- [x] Editor test for enabling/disabling breakpoints
- [ ] Integration Test to make sure we don't send disabled breakpoints
to DAP servers
- [x] Database test to make sure we properly serialize/deserialize
BreakpointState

Release Notes:

- N/A

---------

Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
```

## Parents

- [df583d73b98a309d3b8df0888a774837238b78ca](https://git.cafe/gitcafe/zed/commit/df583d73b98a309d3b8df0888a774837238b78ca?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d70ac64fe4100f98839c29328112cc9791023a99?format=markdown)
