Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DebugSession

Implements

  • CompositeTreeElement

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

_breakpoints: Map<string, DebugBreakpoint<BaseBreakpoint>[]> = ...
_capabilities: Capabilities = {}
_currentThread: undefined | DebugThread
_threads: Map<number, DebugThread> = ...
breakpoints: BreakpointManager
childSessions: Map<string, DebugSession> = ...
debugContributionProvider: ContributionProvider<DebugContribution>
deferredOnDidConfigureCapabilities: Deferred<void> = ...
didReceiveCapabilities: Deferred<void> = ...

The send('initialize') request could resolve later than on('initialized') emits the event. Hence, the configure would use the empty object capabilities. Using the empty capabilities could result in missing exception breakpoint filters, as always capabilities.exceptionBreakpointFilters is falsy. This deferred promise works around this timing issue. https://github.com/eclipse-theia/theia/issues/11886

editorManager: EditorManager
fileService: FileService
id: string
initialized: boolean = false
isStopping: boolean = false
labelProvider: LabelProvider
messages: MessageClient
onDidChange: Event<void> = ...
onDidChangeBreakpoints: Event<URI> = ...
onDidChangeBreakpointsEmitter: Emitter<URI> = ...
onDidChangeEmitter: Emitter<void> = ...
onDidFocusStackFrameEmitter: Emitter<undefined | DebugStackFrame> = ...
parentSession: undefined | DebugSession
pendingThreads: Promise<void> = ...
scheduleUpdateThreads: ((...arguments: []) => Promise<void>) = ...

Type declaration

    • (...arguments: []): Promise<void>
    • Debounce promise-returning & async functions.

      example
      import pDebounce = require('p-debounce');

      const expensiveCall = async input => input;

      const debouncedFn = pDebounce(expensiveCall, 200);

      for (const i of [1, 2, 3]) {
      debouncedFn(i).then(console.log);
      }
      //=> 3
      //=> 3
      //=> 3

      Parameters

      • Rest ...arguments: []

      Returns Promise<void>

      A function that delays calling fn until after wait milliseconds have elapsed since the last time it was called.

sources: Map<string, DebugSource> = ...
stopTimeout: number = 5_000
terminalServer: TerminalService
toDispose: DisposableCollection = ...
toDisposeOnCurrentThread: DisposableCollection = ...
updatingBreakpoints: boolean = false
workspaceService: WorkspaceService

Accessors

  • get breakpointUris(): IterableIterator<string>
  • get capabilities(): Capabilities
  • get label(): string
  • get onDidCustomEvent(): Event<Event>
  • get onDispose(): Event<void>
  • get threadCount(): number
  • get visible(): boolean

Methods

  • canRestart(): boolean
  • canTerminate(): boolean
  • clearBreakpoints(): void
  • clearThread(threadId: number): void
  • clearThreads(): void
  • completions(text: string, column: number, line: number): Promise<CompletionItem[]>
  • configure(): Promise<void>
  • continueAll(): Promise<void>
  • disconnect(isRestart: boolean, callback: (() => void)): Promise<void>
  • doCreateTerminal(options: TerminalWidgetOptions): Promise<TerminalWidget>
  • doUpdateThreads(threads: Thread[], stoppedDetails?: StoppedDetails): void
  • evaluate(expression: string, context?: string): Promise<{}>
  • fireDidChange(): void
  • fireDidChangeBreakpoints(uri: URI): void
  • getAffectedUris(uri?: URI): IterableIterator<URI>
  • handleContinued(__namedParameters: ContinuedEvent): Promise<void>
  • handleDisconnectError(err: unknown): void
  • handleStopped(__namedParameters: StoppedEvent): Promise<void>
  • handleTerminateError(err: unknown): void
  • handleThread(__namedParameters: ThreadEvent): Promise<void>
  • initialize(): Promise<void>
  • launchOrAttach(): Promise<void>
  • pauseAll(): Promise<void>
  • render(): ReactNode
  • restart(): Promise<void>
  • runInTerminal(__namedParameters: RunInTerminalRequest): Promise<{}>
  • sendCustomRequest<T>(command: string, args?: any): Promise<T>
  • sendExceptionBreakpoints(): Promise<void>
  • sendFunctionBreakpoints(affectedUri: URI): Promise<void>
  • sendInstructionBreakpoints(): Promise<void>
  • sendSourceBreakpoints(affectedUri: URI, sourceModified?: boolean): Promise<void>
  • start(): Promise<void>
  • stop(isRestart: boolean, callback: (() => void)): Promise<void>
  • toDebugSource(uri: URI): Promise<Source>
  • updateBreakpoint(body: {}): void
  • updateBreakpoints(options: { sourceModified: boolean; uri?: URI }): Promise<void>
  • updateCapabilities(capabilities: Capabilities): void
  • updateFrames(): Promise<void>
  • updateThreads(stoppedDetails: undefined | StoppedDetails): Promise<void>
  • waitFor<K>(kind: K, ms: number): Promise<void>