Work towards a breakpoint UI

This commit is contained in:
Blaž Hrastnik 2021-08-19 11:24:53 +09:00
parent 8759dc7e33
commit 94a1951d40
7 changed files with 69 additions and 15 deletions

View file

@ -33,6 +33,9 @@ pub struct Client {
request_counter: AtomicU64,
capabilities: Option<DebuggerCapabilities>,
awaited_events: Arc<Mutex<HashMap<String, Sender<Event>>>>,
//
pub breakpoints: HashMap<PathBuf, Vec<SourceBreakpoint>>,
}
impl Client {
@ -51,6 +54,8 @@ impl Client {
request_counter: AtomicU64::new(0),
capabilities: None,
awaited_events: Arc::new(Mutex::new(HashMap::default())),
//
breakpoints: HashMap::new(),
};
tokio::spawn(Self::recv(Arc::clone(&client.awaited_events), server_rx));