Class: DSP::StoppedEvent
Overview
interface StoppedEvent extends Event {
body: {
/** 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).
Values: 'step', 'breakpoint', 'exception', 'pause', 'entry', 'goto', 'function breakpoint', 'data breakpoint', etc.
*/
reason: string;
/** The full reason for the event, e.g. 'Paused on exception'. This string is shown in the UI as is and must be translated. */
description?: string;
/** The thread which was stopped. */
threadId?: number;
/** A value of true hints to the frontend that this event should not change the focus. */
preserveFocusHint?: boolean;
/** Additional information. E.g. if reason is 'exception', text contains the exception name. This string is shown in the UI. */
text?: string;
/** 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.
*/
allThreadsStopped?: boolean;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#event ⇒ Object
/** The reason for the event.
-
#seq ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
Methods inherited from DSPBase
Constructor Details
This class inherits a constructor from DSP::DSPBase
Instance Attribute Details
#body ⇒ Object
type: {
265 266 267 |
# File 'lib/dsp/dsp_protocol.rb', line 265 def body @body end |
#event ⇒ Object
/** 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).
Values: 'step', 'breakpoint', 'exception', 'pause', 'entry', 'goto', 'function breakpoint', 'data breakpoint', etc.
*/
reason: string;
/** The full reason for the event, e.g. 'Paused on exception'. This string is shown in the UI as is and must be translated. */
description?: string;
/** The thread which was stopped. */
threadId?: number;
/** A value of true hints to the frontend that this event should not change the focus. */
preserveFocusHint?: boolean;
/** Additional information. E.g. if reason is 'exception', text contains the exception name. This string is shown in the UI. */
text?: string;
/** 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 to access their stacktraces.
- If the attribute is missing or false, only the thread with the given threadId can be .
*/
allThreadsStopped?: boolean;
}
285 286 287 |
# File 'lib/dsp/dsp_protocol.rb', line 285 def event @event end |
#seq ⇒ Object
type: {
265 266 267 |
# File 'lib/dsp/dsp_protocol.rb', line 265 def seq @seq end |
#type ⇒ Object
type: {
265 266 267 |
# File 'lib/dsp/dsp_protocol.rb', line 265 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
287 288 289 290 291 292 293 294 |
# File 'lib/dsp/dsp_protocol.rb', line 287 def from_h!(value) value = {} if value.nil? self.body = value['body'] # Unknown type self.event = value['event'] self.seq = value['seq'] self.type = value['type'] self end |