# Debugger: Fix breakpoint serialization \(\#27825\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8075c2458fb93005c9cd9325bc6c1eb5df33c9dd

Requested commit: 8075c2458fb93005c9cd9325bc6c1eb5df33c9dd

Commit: 8075c2458fb93005c9cd9325bc6c1eb5df33c9dd

Tree: a2b4d52d66385c8df501aeb58dbaf263cf268610

Author: Anthony Eid

Committer: GitHub

## Message

```
Debugger: Fix breakpoint serialization (#27825)

This PR fixes two bugs that cause unexpected behavior with breakpoints.

The first bug made it impossible to delete the last breakpoint in a file
in the workspace's database. This caused deleted breakpoints to remain
in the database and added to new projects.

The second bug was an edge case in the breakpoint context menu where
disabling/enabling a breakpoint would sometimes set a new breakpoint on
top of the old breakpoint.


Release Notes:

- N/A
```

## Parents

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

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