# debugger: Update debug panel when breakpoint store changes \(\#63240\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 45cd77bba0967fd106649956247f3ed6d74e75f6

Requested commit: 45cd77bba0967fd106649956247f3ed6d74e75f6

Commit: 45cd77bba0967fd106649956247f3ed6d74e75f6

Tree: 752abf5d5e25924441d5119c9768f5ee9ebc6c14

Author: Casey Avila

Committer: GitHub

## Message

```
debugger: Update debug panel when breakpoint store changes (#63240)

# Objective

- There is currently a bug where toggling breakpoints would not be
immediately reflected in the breakpoint list of the debug panel
- For example, pressing `F9` to create a breakpoint would not
immediately add an entry to the breakpoints list in the debug panel,
instead requiring another event like mouse movement

## Solution

- Subscribe the debug panel to changes to the breakpoint store.

## Testing

- Manually tested

## Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [X] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [X] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

## Showcase


https://github.com/user-attachments/assets/d2b7efab-0131-491e-8339-3657edaf7fcd



https://github.com/user-attachments/assets/4161a435-c59e-4f6a-9387-31528c127c80





---

Release Notes:

- Fixed debugger panel not immediately reflecting changes in toggled
breakpoints
```

## Parents

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

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