@@ -43,7 +43,10 @@ pub async fn select_thread_id(editor: &mut Editor, thread_id: isize, force: bool
4343
4444 // fetch stack trace
4545 // TODO: handle requesting more total frames
46− let (frames, _) = debugger.stack_trace(thread_id).await.unwrap();
46+ let (frames, _) = match debugger.stack_trace(thread_id).await {
47+ Ok(frames) => frames,
48+ Err(_) => return,
49+ };
4750 debugger.stack_frames.insert(thread_id, frames);
4851 debugger.active_frame = Some(0); // TODO: check how to determine this
4952