1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # dscode-dap
//!
//! Debug Adapter Protocol client, manager, and pool for DSCode.
//!
//! This crate provides a complete DAP client implementation with:
//! - [`DebugAdapter`] — State-machine-based DAP client that manages a debug adapter process
//! - [`DebugManager`] — Registry for debug sessions and breakpoints
//! - [`DebugAdapterPool`] — Connection pool with one adapter per debug session
//!
//! # State Machine
//!
//! The `DebugAdapter` follows a strict lifecycle:
//!
//! ```text
//! Stopped → Starting → Initializing → Configured → Running
//! ▲ │ │ │ │
//! │ ▼ ▼ ▼ ▼
//! │ Crashed ◄── Crashed ◄─── Crashed ◄── Crashed
//! │ │
//! │ ShuttingDown│
//! │ │ │
//! └───────────────────────────────────────────┘ │
//! ▲ │
//! └───────┘
//! ```
//!
//! # Example
//!
//! ```rust,no_run
//! use dscode_dap::{DebugAdapterPool, DebugManager, DebugSession, DebugState};
//!
//! # async fn example() {
//! let manager = DebugManager::new();
//! let session_id = manager.create_session("main".to_string(), "cppdbg".to_string()).unwrap();
//!
//! let pool = DebugAdapterPool::new();
//! pool.register_adapter("cppdbg".to_string(), "/usr/bin/gdb".to_string(), vec![]).await;
//!
//! let session = manager.get_session(&session_id).unwrap();
//! let adapter = pool.create_session(session).await.unwrap();
//! # }
//! ```
pub use ;
pub use DapError;
pub use DebugManager;
pub use ;
pub use *;