pub struct StoppedEvent {
pub reason: StoppedEventReason,
pub description: Option<String>,
pub thread_id: Option<u64>,
pub preserve_focus_hint: Option<bool>,
pub text: Option<String>,
pub all_threads_stopped: Option<bool>,
pub hit_breakpoint_ids: Option<Vec<u64>>,
}
Expand description
The event indicates that the execution of the debuggee has stopped due to some condition. This can be caused by a breakpoint previously set, a stepping request has completed, by executing a debugger statement etc.
Fields§
§reason: StoppedEventReason
The reason for the event.
For backward compatibility this string is shown in the UI if the description
attribute is missing (but it must not be translated).
description: Option<String>
The full reason for the event, e.g. ‘Paused on exception’. This string is shown in the UI as is and can be translated.
thread_id: Option<u64>
The thread which was stopped.
preserve_focus_hint: Option<bool>
A value of true hints to the client that this event should not change the focus.
text: Option<String>
Additional information. E.g. if reason is exception
, text contains the exception name. This string is shown in the UI.
all_threads_stopped: Option<bool>
If allThreadsStopped
is true, a debug adapter can announce that all threads have stopped.
- The client should use this information to enable that all threads can be expanded to access their stacktraces.
- If the attribute is missing or false, only the thread with the given
threadId
can be expanded.
hit_breakpoint_ids: Option<Vec<u64>>
Ids of the breakpoints that triggered the event. In most cases there is only a single breakpoint but here are some examples for multiple breakpoints:
- Different types of breakpoints map to the same location.
- Multiple source breakpoints get collapsed to the same instruction by the compiler/runtime.
- Multiple function breakpoints with different function names map to the same location.
Trait Implementations§
Source§impl Clone for StoppedEvent
impl Clone for StoppedEvent
Source§fn clone(&self) -> StoppedEvent
fn clone(&self) -> StoppedEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more