Home Explore Blog CI



zed

crates/dap/docs/breakpoints.md
44cbd57800826959bf9a865bea97cde6b17f35e373bfd54200000003000001d6
# Overview

The active `Project` is responsible for maintain opened and closed breakpoints
as well as serializing breakpoints to save. At a high level project serializes
the positions of breakpoints that don't belong to any active buffers and handles
converting breakpoints from serializing to active whenever a buffer is opened/closed.

`Project` also handles sending all relevant breakpoint information to debug adapter's
during debugging or when starting a debugger.

Chunks
491f7e62 (1st chunk of `crates/dap/docs/breakpoints.md`)
Title: Project Responsibilities: Breakpoint Management and Serialization
Summary
The `Project` class manages breakpoints, including their open/closed states and serialization for saving. It handles breakpoints not associated with active buffers and converts serialized breakpoints to active ones when buffers are opened or closed. It also sends breakpoint information to debug adapters during debugging or when a debugger starts.