# debugger: Fix bug where active debug line highlights weren't cleared \(\#29562\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6386336eee1ada9d86f790ed386298e96769a07e

Requested commit: 6386336eee1ada9d86f790ed386298e96769a07e

Commit: 6386336eee1ada9d86f790ed386298e96769a07e

Tree: 6f2d2afab906909080c452a25e8bb93e53f9208a

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Fix bug where active debug line highlights weren't cleared (#29562)

## Context
The bug occurred because we stopped propagating the
`BreakpointStoreEvent::SetDebugLine` whenever a new debug line highlight
had been set. This was done to prevent multiple panes from having
editors focus on the debug line. However, it stopped the event from
propagating to editors that needed to clear their debug line highlights.

I fixed this by introducing two phases
1. Clear all debug line highlights
2. Set active debug line highlight in singular editor 

I also added a test to prevent regressions from occurring

Release Notes:

- N/A
```

## Parents

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

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