# debugger: Skip out-of-bounds breakpoints when deserializing \(\#28781\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cd4a3fd679a18e8ef243c6ad133ccda1bf74408a

Requested commit: cd4a3fd679a18e8ef243c6ad133ccda1bf74408a

Commit: cd4a3fd679a18e8ef243c6ad133ccda1bf74408a

Tree: c04c7faf109a235e54444d901b3e29db3ec1806a

Author: Cole Miller

Committer: GitHub

## Message

```
debugger: Skip out-of-bounds breakpoints when deserializing (#28781)

Previously we'd crash when deserializing a breakpoint whose row number
was out of bounds (could happen if the file was externally modified).
This PR fixes that code to skip such breakpoints.

An alternative would be to clip the deserialized `PointUtf16`, but I
think that would mostly result in nonsensical breakpoints.

Release Notes:

- N/A
```

## Parents

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

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