@codingame/monaco-vscode-debug-service-override 16.1.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +17 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +130 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +28 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +54 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +48 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +6 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -36,12 +36,12 @@ import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-98
|
|
|
36
36
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
37
37
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
38
38
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
39
|
-
import { Parts } from '@codingame/monaco-vscode-
|
|
39
|
+
import { Parts } from '@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
40
40
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
41
41
|
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
42
42
|
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
43
43
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
44
|
-
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-
|
|
44
|
+
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common/vscode/vs/workbench/contrib/files/common/files';
|
|
45
45
|
import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
46
46
|
import { State, CALLSTACK_VIEW_ID, DEBUG_MEMORY_SCHEME, CONTEXT_DEBUG_TYPE, CONTEXT_DEBUG_STATE, CONTEXT_HAS_DEBUGGED, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_UX, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_DISASSEMBLY_VIEW_FOCUS, getStateLabel, debuggerDisabledMessage, VIEWLET_ID, REPL_VIEW_ID, DEBUG_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
47
47
|
import { DebugCompoundRoot } from '../common/debugCompoundRoot.js';
|
|
@@ -142,7 +142,7 @@ let DebugService = class DebugService {
|
|
|
142
142
|
if (numberOfSessions > 0) {
|
|
143
143
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
144
144
|
if (viewContainer) {
|
|
145
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(
|
|
145
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(5824, "1 active session")) : ( localize(5825, "{0} active sessions", n)))) });
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}));
|
|
@@ -164,7 +164,7 @@ let DebugService = class DebugService {
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
this.disposables.add(extensionService.onWillStop(evt => {
|
|
167
|
-
evt.veto(this.model.getSessions().length > 0, ( localize(
|
|
167
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(5826, 'A debug session is still running that would terminate.')));
|
|
168
168
|
}));
|
|
169
169
|
this.initContextKeys(contextKeyService);
|
|
170
170
|
}
|
|
@@ -273,8 +273,8 @@ let DebugService = class DebugService {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
276
|
-
const message = options && options.noDebug ? ( localize(
|
|
277
|
-
|
|
276
|
+
const message = options && options.noDebug ? ( localize(5827, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
277
|
+
5828,
|
|
278
278
|
"Debugging executes build tasks and program code from your workspace."
|
|
279
279
|
));
|
|
280
280
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
@@ -305,7 +305,7 @@ let DebugService = class DebugService {
|
|
|
305
305
|
if (compound) {
|
|
306
306
|
if (!compound.configurations) {
|
|
307
307
|
throw ( new Error(( localize(
|
|
308
|
-
|
|
308
|
+
5829,
|
|
309
309
|
"Compound must have \"configurations\" attribute set in order to start multiple configurations."
|
|
310
310
|
))));
|
|
311
311
|
}
|
|
@@ -334,9 +334,9 @@ let DebugService = class DebugService {
|
|
|
334
334
|
launchForName = launch;
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
|
-
throw ( new Error(launchesContainingName.length === 0 ? ( localize(
|
|
337
|
+
throw ( new Error(launchesContainingName.length === 0 ? ( localize(5830, "Could not find launch configuration '{0}' in the workspace.", name))
|
|
338
338
|
: ( localize(
|
|
339
|
-
|
|
339
|
+
5831,
|
|
340
340
|
"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
|
|
341
341
|
name
|
|
342
342
|
))));
|
|
@@ -349,7 +349,7 @@ let DebugService = class DebugService {
|
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
351
|
throw ( new Error(( localize(
|
|
352
|
-
|
|
352
|
+
5832,
|
|
353
353
|
"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
|
|
354
354
|
configData.folder,
|
|
355
355
|
configData.name,
|
|
@@ -365,11 +365,11 @@ let DebugService = class DebugService {
|
|
|
365
365
|
}
|
|
366
366
|
if (configOrName && !config) {
|
|
367
367
|
const message = !!launch ? ( localize(
|
|
368
|
-
|
|
368
|
+
5833,
|
|
369
369
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
370
370
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
371
371
|
)) :
|
|
372
|
-
( localize(
|
|
372
|
+
( localize(5834, "'launch.json' does not exist for passed workspace folder."));
|
|
373
373
|
throw ( new Error(message));
|
|
374
374
|
}
|
|
375
375
|
const result = await this.createSession(launch, config, options);
|
|
@@ -457,23 +457,23 @@ let DebugService = class DebugService {
|
|
|
457
457
|
let message;
|
|
458
458
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
459
459
|
message = configByProviders.request ? ( localize(
|
|
460
|
-
|
|
460
|
+
5835,
|
|
461
461
|
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
462
462
|
'request',
|
|
463
463
|
configByProviders.request
|
|
464
464
|
))
|
|
465
465
|
: ( localize(
|
|
466
|
-
|
|
466
|
+
5836,
|
|
467
467
|
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
468
468
|
'request'
|
|
469
469
|
));
|
|
470
470
|
}
|
|
471
471
|
else {
|
|
472
|
-
message = resolvedConfig.type ? ( localize(
|
|
473
|
-
( localize(
|
|
472
|
+
message = resolvedConfig.type ? ( localize(5837, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
473
|
+
( localize(5838, "Missing property 'type' for the chosen launch configuration."));
|
|
474
474
|
}
|
|
475
475
|
const actionList = [];
|
|
476
|
-
actionList.push(( new Action('installAdditionalDebuggers', ( localize(
|
|
476
|
+
actionList.push(( new Action('installAdditionalDebuggers', ( localize(5839, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
|
|
477
477
|
await this.showError(message, actionList);
|
|
478
478
|
return false;
|
|
479
479
|
}
|
|
@@ -494,7 +494,7 @@ let DebugService = class DebugService {
|
|
|
494
494
|
}
|
|
495
495
|
else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
|
|
496
496
|
await this.showError(( localize(
|
|
497
|
-
|
|
497
|
+
5840,
|
|
498
498
|
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
499
499
|
)));
|
|
500
500
|
}
|
|
@@ -513,7 +513,7 @@ let DebugService = class DebugService {
|
|
|
513
513
|
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
514
514
|
if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
515
515
|
const result = await this.dialogService.confirm({ message: ( localize(
|
|
516
|
-
|
|
516
|
+
5841,
|
|
517
517
|
"'{0}' is already running. Do you want to start another instance?",
|
|
518
518
|
session.getLabel()
|
|
519
519
|
)) });
|
|
@@ -604,7 +604,7 @@ let DebugService = class DebugService {
|
|
|
604
604
|
if (adapterExitEvent) {
|
|
605
605
|
if (adapterExitEvent.error) {
|
|
606
606
|
this.notificationService.error(( localize(
|
|
607
|
-
|
|
607
|
+
5842,
|
|
608
608
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
609
609
|
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
610
610
|
)));
|
|
@@ -848,7 +848,7 @@ let DebugService = class DebugService {
|
|
|
848
848
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
849
849
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
850
850
|
alert(( localize(
|
|
851
|
-
|
|
851
|
+
5843,
|
|
852
852
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
853
853
|
lineContent,
|
|
854
854
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -921,7 +921,7 @@ let DebugService = class DebugService {
|
|
|
921
921
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
922
922
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
923
923
|
if (ariaAnnounce) {
|
|
924
|
-
breakpoints.forEach(bp => status(( localize(
|
|
924
|
+
breakpoints.forEach(bp => status(( localize(5844, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
925
925
|
}
|
|
926
926
|
this.debugStorage.storeBreakpoints(this.model);
|
|
927
927
|
await this.sendBreakpoints(uri);
|
|
@@ -943,7 +943,7 @@ let DebugService = class DebugService {
|
|
|
943
943
|
const breakpoints = this.model.getBreakpoints();
|
|
944
944
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
945
945
|
toRemove.forEach(bp => status(( localize(
|
|
946
|
-
|
|
946
|
+
5845,
|
|
947
947
|
"Removed breakpoint, line {0}, file {1}",
|
|
948
948
|
bp.lineNumber,
|
|
949
949
|
bp.uri.fsPath
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { Disposable
|
|
3
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
5
|
import { IPosition, Position } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position";
|
|
6
|
+
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
6
7
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
@@ -13,22 +14,21 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
13
14
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
14
15
|
import { IWorkspaceFolder } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
|
|
15
16
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
16
|
-
import {
|
|
17
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
18
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
19
|
+
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
20
|
+
import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
21
|
+
import { LiveTestResult } from "@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testResult";
|
|
22
|
+
import { ITestResultService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service";
|
|
23
|
+
import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service";
|
|
17
24
|
import { AdapterEndEvent, IBreakpoint, IConfig, IDataBreakpoint, IDataBreakpointInfoResponse, IDebugLocationReferenced, IDebugSession, IDebugSessionOptions, IDebugger, IExceptionBreakpoint, IExceptionInfo, IFunctionBreakpoint, IInstructionBreakpoint, IMemoryRegion, IRawModelUpdate, IRawStoppedDetails, IReplElement, IStackFrame, IThread, LoadedSourceEvent, State } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
18
25
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
19
26
|
import { DebugCompoundRoot } from "../common/debugCompoundRoot.js";
|
|
20
27
|
import { DebugModel, Thread } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel";
|
|
21
28
|
import { Source } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugSource";
|
|
22
29
|
import { INewReplElementData } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/replModel";
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
26
|
-
import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
27
|
-
import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service";
|
|
28
|
-
import { ITestResultService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service";
|
|
29
|
-
import { LiveTestResult } from "@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common/vscode/vs/workbench/contrib/testing/common/testResult";
|
|
30
|
-
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
31
|
-
export declare class DebugSession implements IDebugSession, IDisposable {
|
|
30
|
+
import { RawDebugSession } from "./rawDebugSession.js";
|
|
31
|
+
export declare class DebugSession implements IDebugSession {
|
|
32
32
|
private id;
|
|
33
33
|
private _configuration;
|
|
34
34
|
root: IWorkspaceFolder | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { getActiveWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
4
|
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
4
6
|
import { distinct } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
5
7
|
import { RunOnceScheduler, raceTimeout, Queue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
8
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
@@ -12,9 +14,11 @@ import { mixin } from '@codingame/monaco-vscode-api/vscode/vs/base/common/object
|
|
|
12
14
|
import { language } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
13
15
|
import { basenameOrAuthority } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
14
16
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
17
|
+
import { isDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
15
18
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
16
19
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
17
20
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
|
+
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
18
22
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
23
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
24
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
@@ -25,23 +29,19 @@ import { ITelemetryService, ICustomEndpointTelemetryService } from '@codingame/m
|
|
|
25
29
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
26
30
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
27
31
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
28
|
-
import {
|
|
32
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
33
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
34
|
+
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
35
|
+
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
36
|
+
import { ITestResultService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service';
|
|
37
|
+
import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
29
38
|
import { State, VIEWLET_ID, isFrameDeemphasized } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
30
39
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
31
40
|
import { MemoryRegion, ExpressionContainer, Thread } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
32
41
|
import { Source } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugSource';
|
|
33
42
|
import { filterExceptionsFromTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
34
43
|
import { ReplModel } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/replModel';
|
|
35
|
-
import {
|
|
36
|
-
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
37
|
-
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
38
|
-
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
39
|
-
import { getActiveWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
40
|
-
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
41
|
-
import { isDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
42
|
-
import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
43
|
-
import { ITestResultService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service';
|
|
44
|
-
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
44
|
+
import { RawDebugSession } from './rawDebugSession.js';
|
|
45
45
|
|
|
46
46
|
const TRIGGERED_BREAKPOINT_MAX_DELAY = 1500;
|
|
47
47
|
let DebugSession = class DebugSession {
|
|
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
|
|
|
290
290
|
}
|
|
291
291
|
async launchOrAttach(config) {
|
|
292
292
|
if (!this.raw) {
|
|
293
|
-
throw ( new Error(( localize(
|
|
293
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'launch or attach'))));
|
|
294
294
|
}
|
|
295
295
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
296
296
|
throw canceled();
|
|
@@ -350,7 +350,7 @@ let DebugSession = class DebugSession {
|
|
|
350
350
|
}
|
|
351
351
|
async restart() {
|
|
352
352
|
if (!this.raw) {
|
|
353
|
-
throw ( new Error(( localize(
|
|
353
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'restart'))));
|
|
354
354
|
}
|
|
355
355
|
this.cancelAllRequests();
|
|
356
356
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -362,7 +362,7 @@ let DebugSession = class DebugSession {
|
|
|
362
362
|
}
|
|
363
363
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
364
364
|
if (!this.raw) {
|
|
365
|
-
throw ( new Error(( localize(
|
|
365
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
366
366
|
}
|
|
367
367
|
if (!this.raw.readyForBreakpoints) {
|
|
368
368
|
return Promise.resolve(undefined);
|
|
@@ -390,7 +390,7 @@ let DebugSession = class DebugSession {
|
|
|
390
390
|
}
|
|
391
391
|
async sendFunctionBreakpoints(fbpts) {
|
|
392
392
|
if (!this.raw) {
|
|
393
|
-
throw ( new Error(( localize(
|
|
393
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'function breakpoints'))));
|
|
394
394
|
}
|
|
395
395
|
if (this.raw.readyForBreakpoints) {
|
|
396
396
|
const response = await this.raw.setFunctionBreakpoints({ breakpoints: ( fbpts.map(bp => bp.toDAP())) });
|
|
@@ -405,7 +405,7 @@ let DebugSession = class DebugSession {
|
|
|
405
405
|
}
|
|
406
406
|
async sendExceptionBreakpoints(exbpts) {
|
|
407
407
|
if (!this.raw) {
|
|
408
|
-
throw ( new Error(( localize(
|
|
408
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'exception breakpoints'))));
|
|
409
409
|
}
|
|
410
410
|
if (this.raw.readyForBreakpoints) {
|
|
411
411
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -429,7 +429,7 @@ let DebugSession = class DebugSession {
|
|
|
429
429
|
}
|
|
430
430
|
dataBytesBreakpointInfo(address, bytes) {
|
|
431
431
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
432
|
-
throw ( new Error(( localize(
|
|
432
|
+
throw ( new Error(( localize(5847, "Session does not support breakpoints with bytes"))));
|
|
433
433
|
}
|
|
434
434
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
435
435
|
}
|
|
@@ -438,17 +438,17 @@ let DebugSession = class DebugSession {
|
|
|
438
438
|
}
|
|
439
439
|
async _dataBreakpointInfo(args) {
|
|
440
440
|
if (!this.raw) {
|
|
441
|
-
throw ( new Error(( localize(
|
|
441
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'data breakpoints info'))));
|
|
442
442
|
}
|
|
443
443
|
if (!this.raw.readyForBreakpoints) {
|
|
444
|
-
throw ( new Error(( localize(
|
|
444
|
+
throw ( new Error(( localize(5848, "Session is not ready for breakpoints"))));
|
|
445
445
|
}
|
|
446
446
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
447
447
|
return response?.body;
|
|
448
448
|
}
|
|
449
449
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
450
450
|
if (!this.raw) {
|
|
451
|
-
throw ( new Error(( localize(
|
|
451
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'data breakpoints'))));
|
|
452
452
|
}
|
|
453
453
|
if (this.raw.readyForBreakpoints) {
|
|
454
454
|
const converted = await Promise.all(( dataBreakpoints.map(async (bp) => {
|
|
@@ -479,7 +479,7 @@ let DebugSession = class DebugSession {
|
|
|
479
479
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
480
480
|
if (!this.raw) {
|
|
481
481
|
throw ( new Error(( localize(
|
|
482
|
-
|
|
482
|
+
5846,
|
|
483
483
|
"No debugger available, can not send '{0}'",
|
|
484
484
|
'instruction breakpoints'
|
|
485
485
|
))));
|
|
@@ -497,7 +497,7 @@ let DebugSession = class DebugSession {
|
|
|
497
497
|
}
|
|
498
498
|
async breakpointsLocations(uri, lineNumber) {
|
|
499
499
|
if (!this.raw) {
|
|
500
|
-
throw ( new Error(( localize(
|
|
500
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'breakpoints locations'))));
|
|
501
501
|
}
|
|
502
502
|
const source = this.getRawSource(uri);
|
|
503
503
|
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
|
|
@@ -512,20 +512,20 @@ let DebugSession = class DebugSession {
|
|
|
512
512
|
}
|
|
513
513
|
customRequest(request, args) {
|
|
514
514
|
if (!this.raw) {
|
|
515
|
-
throw ( new Error(( localize(
|
|
515
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", request))));
|
|
516
516
|
}
|
|
517
517
|
return this.raw.custom(request, args);
|
|
518
518
|
}
|
|
519
519
|
stackTrace(threadId, startFrame, levels, token) {
|
|
520
520
|
if (!this.raw) {
|
|
521
|
-
throw ( new Error(( localize(
|
|
521
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
522
522
|
}
|
|
523
523
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
524
524
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
525
525
|
}
|
|
526
526
|
async exceptionInfo(threadId) {
|
|
527
527
|
if (!this.raw) {
|
|
528
|
-
throw ( new Error(( localize(
|
|
528
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'exceptionInfo'))));
|
|
529
529
|
}
|
|
530
530
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
531
531
|
if (response) {
|
|
@@ -540,28 +540,28 @@ let DebugSession = class DebugSession {
|
|
|
540
540
|
}
|
|
541
541
|
scopes(frameId, threadId) {
|
|
542
542
|
if (!this.raw) {
|
|
543
|
-
throw ( new Error(( localize(
|
|
543
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
544
544
|
}
|
|
545
545
|
const token = this.getNewCancellationToken(threadId);
|
|
546
546
|
return this.raw.scopes({ frameId }, token);
|
|
547
547
|
}
|
|
548
548
|
variables(variablesReference, threadId, filter, start, count) {
|
|
549
549
|
if (!this.raw) {
|
|
550
|
-
throw ( new Error(( localize(
|
|
550
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'variables'))));
|
|
551
551
|
}
|
|
552
552
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
553
553
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
554
554
|
}
|
|
555
555
|
evaluate(expression, frameId, context, location) {
|
|
556
556
|
if (!this.raw) {
|
|
557
|
-
throw ( new Error(( localize(
|
|
557
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
558
558
|
}
|
|
559
559
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
560
560
|
}
|
|
561
561
|
async restartFrame(frameId, threadId) {
|
|
562
562
|
await this.waitForTriggeredBreakpoints();
|
|
563
563
|
if (!this.raw) {
|
|
564
|
-
throw ( new Error(( localize(
|
|
564
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'restartFrame'))));
|
|
565
565
|
}
|
|
566
566
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
567
567
|
}
|
|
@@ -574,7 +574,7 @@ let DebugSession = class DebugSession {
|
|
|
574
574
|
async next(threadId, granularity) {
|
|
575
575
|
await this.waitForTriggeredBreakpoints();
|
|
576
576
|
if (!this.raw) {
|
|
577
|
-
throw ( new Error(( localize(
|
|
577
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'next'))));
|
|
578
578
|
}
|
|
579
579
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
580
580
|
await this.raw.next({ threadId, granularity });
|
|
@@ -582,7 +582,7 @@ let DebugSession = class DebugSession {
|
|
|
582
582
|
async stepIn(threadId, targetId, granularity) {
|
|
583
583
|
await this.waitForTriggeredBreakpoints();
|
|
584
584
|
if (!this.raw) {
|
|
585
|
-
throw ( new Error(( localize(
|
|
585
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
586
586
|
}
|
|
587
587
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
588
588
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -590,7 +590,7 @@ let DebugSession = class DebugSession {
|
|
|
590
590
|
async stepOut(threadId, granularity) {
|
|
591
591
|
await this.waitForTriggeredBreakpoints();
|
|
592
592
|
if (!this.raw) {
|
|
593
|
-
throw ( new Error(( localize(
|
|
593
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
594
594
|
}
|
|
595
595
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
596
596
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -598,7 +598,7 @@ let DebugSession = class DebugSession {
|
|
|
598
598
|
async stepBack(threadId, granularity) {
|
|
599
599
|
await this.waitForTriggeredBreakpoints();
|
|
600
600
|
if (!this.raw) {
|
|
601
|
-
throw ( new Error(( localize(
|
|
601
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
602
602
|
}
|
|
603
603
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
604
604
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -606,56 +606,56 @@ let DebugSession = class DebugSession {
|
|
|
606
606
|
async continue(threadId) {
|
|
607
607
|
await this.waitForTriggeredBreakpoints();
|
|
608
608
|
if (!this.raw) {
|
|
609
|
-
throw ( new Error(( localize(
|
|
609
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'continue'))));
|
|
610
610
|
}
|
|
611
611
|
await this.raw.continue({ threadId });
|
|
612
612
|
}
|
|
613
613
|
async reverseContinue(threadId) {
|
|
614
614
|
await this.waitForTriggeredBreakpoints();
|
|
615
615
|
if (!this.raw) {
|
|
616
|
-
throw ( new Error(( localize(
|
|
616
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'reverse continue'))));
|
|
617
617
|
}
|
|
618
618
|
await this.raw.reverseContinue({ threadId });
|
|
619
619
|
}
|
|
620
620
|
async pause(threadId) {
|
|
621
621
|
if (!this.raw) {
|
|
622
|
-
throw ( new Error(( localize(
|
|
622
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'pause'))));
|
|
623
623
|
}
|
|
624
624
|
await this.raw.pause({ threadId });
|
|
625
625
|
}
|
|
626
626
|
async terminateThreads(threadIds) {
|
|
627
627
|
if (!this.raw) {
|
|
628
|
-
throw ( new Error(( localize(
|
|
628
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'terminateThreads'))));
|
|
629
629
|
}
|
|
630
630
|
await this.raw.terminateThreads({ threadIds });
|
|
631
631
|
}
|
|
632
632
|
setVariable(variablesReference, name, value) {
|
|
633
633
|
if (!this.raw) {
|
|
634
|
-
throw ( new Error(( localize(
|
|
634
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
635
635
|
}
|
|
636
636
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
637
637
|
}
|
|
638
638
|
setExpression(frameId, expression, value) {
|
|
639
639
|
if (!this.raw) {
|
|
640
|
-
throw ( new Error(( localize(
|
|
640
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'setExpression'))));
|
|
641
641
|
}
|
|
642
642
|
return this.raw.setExpression({ expression, value, frameId });
|
|
643
643
|
}
|
|
644
644
|
gotoTargets(source, line, column) {
|
|
645
645
|
if (!this.raw) {
|
|
646
|
-
throw ( new Error(( localize(
|
|
646
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
647
647
|
}
|
|
648
648
|
return this.raw.gotoTargets({ source, line, column });
|
|
649
649
|
}
|
|
650
650
|
goto(threadId, targetId) {
|
|
651
651
|
if (!this.raw) {
|
|
652
|
-
throw ( new Error(( localize(
|
|
652
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'goto'))));
|
|
653
653
|
}
|
|
654
654
|
return this.raw.goto({ threadId, targetId });
|
|
655
655
|
}
|
|
656
656
|
loadSource(resource) {
|
|
657
657
|
if (!this.raw) {
|
|
658
|
-
return Promise.reject(( new Error(( localize(
|
|
658
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'loadSource')))));
|
|
659
659
|
}
|
|
660
660
|
const source = this.getSourceForUri(resource);
|
|
661
661
|
let rawSource;
|
|
@@ -670,7 +670,7 @@ let DebugSession = class DebugSession {
|
|
|
670
670
|
}
|
|
671
671
|
async getLoadedSources() {
|
|
672
672
|
if (!this.raw) {
|
|
673
|
-
return Promise.reject(( new Error(( localize(
|
|
673
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'getLoadedSources')))));
|
|
674
674
|
}
|
|
675
675
|
const response = await this.raw.loadedSources({});
|
|
676
676
|
if (response?.body && response.body.sources) {
|
|
@@ -682,7 +682,7 @@ let DebugSession = class DebugSession {
|
|
|
682
682
|
}
|
|
683
683
|
async completions(frameId, threadId, text, position, token) {
|
|
684
684
|
if (!this.raw) {
|
|
685
|
-
return Promise.reject(( new Error(( localize(
|
|
685
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'completions')))));
|
|
686
686
|
}
|
|
687
687
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
688
688
|
return this.raw.completions({
|
|
@@ -694,43 +694,43 @@ let DebugSession = class DebugSession {
|
|
|
694
694
|
}
|
|
695
695
|
async stepInTargets(frameId) {
|
|
696
696
|
if (!this.raw) {
|
|
697
|
-
return Promise.reject(( new Error(( localize(
|
|
697
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'stepInTargets')))));
|
|
698
698
|
}
|
|
699
699
|
const response = await this.raw.stepInTargets({ frameId });
|
|
700
700
|
return response?.body.targets;
|
|
701
701
|
}
|
|
702
702
|
async cancel(progressId) {
|
|
703
703
|
if (!this.raw) {
|
|
704
|
-
return Promise.reject(( new Error(( localize(
|
|
704
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'cancel')))));
|
|
705
705
|
}
|
|
706
706
|
return this.raw.cancel({ progressId });
|
|
707
707
|
}
|
|
708
708
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
709
709
|
if (!this.raw) {
|
|
710
|
-
return Promise.reject(( new Error(( localize(
|
|
710
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
711
711
|
}
|
|
712
712
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
713
713
|
return response?.body?.instructions;
|
|
714
714
|
}
|
|
715
715
|
readMemory(memoryReference, offset, count) {
|
|
716
716
|
if (!this.raw) {
|
|
717
|
-
return Promise.reject(( new Error(( localize(
|
|
717
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'readMemory')))));
|
|
718
718
|
}
|
|
719
719
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
720
720
|
}
|
|
721
721
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
722
722
|
if (!this.raw) {
|
|
723
|
-
return Promise.reject(( new Error(( localize(
|
|
723
|
+
return Promise.reject(( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
724
724
|
}
|
|
725
725
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
726
726
|
}
|
|
727
727
|
async resolveLocationReference(locationReference) {
|
|
728
728
|
if (!this.raw) {
|
|
729
|
-
throw ( new Error(( localize(
|
|
729
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'locations'))));
|
|
730
730
|
}
|
|
731
731
|
const location = await this.raw.locations({ locationReference });
|
|
732
732
|
if (!location?.body) {
|
|
733
|
-
throw ( new Error(( localize(
|
|
733
|
+
throw ( new Error(( localize(5846, "No debugger available, can not send '{0}'", 'locations'))));
|
|
734
734
|
}
|
|
735
735
|
const source = this.getSource(location.body.source);
|
|
736
736
|
return { column: 1, ...location.body, source };
|
|
@@ -842,8 +842,8 @@ let DebugSession = class DebugSession {
|
|
|
842
842
|
}
|
|
843
843
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
844
844
|
status(this.configuration.noDebug
|
|
845
|
-
? ( localize(
|
|
846
|
-
: ( localize(
|
|
845
|
+
? ( localize(5849, "Started running without debugging."))
|
|
846
|
+
: ( localize(5850, "Debugging started.")));
|
|
847
847
|
const sendConfigurationDone = async () => {
|
|
848
848
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
849
849
|
try {
|
|
@@ -890,7 +890,7 @@ let DebugSession = class DebugSession {
|
|
|
890
890
|
}
|
|
891
891
|
}));
|
|
892
892
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
893
|
-
status(( localize(
|
|
893
|
+
status(( localize(5851, "Debugging stopped.")));
|
|
894
894
|
if (event.body && event.body.restart) {
|
|
895
895
|
await this.debugService.restartSession(this, event.body.restart);
|
|
896
896
|
}
|
|
@@ -50,10 +50,10 @@ let DebugStatusContribution = class DebugStatusContribution {
|
|
|
50
50
|
text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(5855, "Debug")),
|
|
54
54
|
text: '$(debug-alt-small) ' + text,
|
|
55
|
-
ariaLabel: ( localize(
|
|
56
|
-
tooltip: ( localize(
|
|
55
|
+
ariaLabel: ( localize(5856, "Debug: {0}", text)),
|
|
56
|
+
tooltip: ( localize(5857, "Select and Start Debug Configuration")),
|
|
57
57
|
command: 'workbench.action.debug.selectandstart'
|
|
58
58
|
};
|
|
59
59
|
}
|