debugger: Improve logging of debug sessions (#32718)
This PR fixes a common issue where a debug session won't start up and user's weren't able to get any logs from the debug session. We now do these three things 1. We know store a history of debug sessions 2. We added a new option to only look at the initialization sequence 3. We default to selecting a session in dap log view in stead of none Release Notes: - debugger: Add history to debug session logging --------- Co-authored-by: Cole Miller <cole@zed.dev> Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
parent
4425d58d72
commit
6650be8e0f
4 changed files with 347 additions and 165 deletions
|
@ -706,6 +706,8 @@ impl DapStore {
|
|||
|
||||
let shutdown_task = session.update(cx, |this, cx| this.shutdown(cx));
|
||||
|
||||
cx.emit(DapStoreEvent::DebugClientShutdown(session_id));
|
||||
|
||||
cx.background_spawn(async move {
|
||||
if shutdown_children.len() > 0 {
|
||||
let _ = join_all(shutdown_children).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue