MCPcopy Create free account
hub / github.com/Marus/cortex-debug / GetSession

Method GetSession

src/frontend/cortex_debug_session.ts:100–107  ·  view source on GitHub ↗
(session: vscode.DebugSession, config?: ConfigurationArguments | undefined)

Source from the content-addressed store, hash-verified

98 return ret;
99 }
100 public static GetSession(session: vscode.DebugSession, config?: ConfigurationArguments | undefined): CDebugSession {
101 const prev = CDebugSession.FindSessionById(session.id);
102 if (prev) {
103 prev.config = config || prev.config;
104 return prev;
105 }
106 return new CDebugSession(session, config || session.configuration);
107 }
108
109 // Call this method after session actually started. It inserts new session into the session tree
110 public static NewSessionStarted(session: vscode.DebugSession): CDebugSession {

Callers 5

registerPortsAsUsedMethod · 0.80
startChainedConfigsMethod · 0.80
createRTTSourceMethod · 0.80
NewSessionStartedMethod · 0.80

Calls 1

FindSessionByIdMethod · 0.80

Tested by

no test coverage detected