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

Method startServerConsole

src/frontend/extension.ts:180–192  ·  view source on GitHub ↗
(context: vscode.ExtensionContext, logFName: string = '')

Source from the content-addressed store, hash-verified

178 }
179
180 private startServerConsole(context: vscode.ExtensionContext, logFName: string = ''): Promise<void> {
181 return new Promise<void>((resolve, reject) => {
182 const rptMsg = 'Please report this problem.';
183 this.gdbServerConsole = new GDBServerConsole(context, logFName);
184 this.gdbServerConsole.startServer().then(() => {
185 resolve(); // All worked out
186 }).catch((e) => {
187 this.gdbServerConsole.dispose();
188 this.gdbServerConsole = null;
189 vscode.window.showErrorMessage(`Could not create gdb-server-console. Will use old style console. Please report this problem. ${e.toString()}`);
190 });
191 });
192 }
193
194 private settingsChanged(e: vscode.ConfigurationChangeEvent) {
195 if (e.affectsConfiguration(`cortex-debug.${CortexDebugKeys.VARIABLE_DISPLAY_MODE}`)) {

Callers 1

constructorMethod · 0.95

Calls 3

toStringMethod · 0.80
disposeMethod · 0.65
startServerMethod · 0.45

Tested by

no test coverage detected