|
@@ -79,13 +79,18 @@ export namespace IDebugger {
|
|
* Stop a running debug session.
|
|
* Stop a running debug session.
|
|
*/
|
|
*/
|
|
stop(): Promise<void>;
|
|
stop(): Promise<void>;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Restore the state of a debug session.
|
|
|
|
+ */
|
|
|
|
+ restoreState(): Promise<void>;
|
|
}
|
|
}
|
|
|
|
|
|
export namespace ISession {
|
|
export namespace ISession {
|
|
/**
|
|
/**
|
|
* Arguments for 'dumpCell' request.
|
|
* Arguments for 'dumpCell' request.
|
|
* This is an addition to the Debug Adapter Protocol to support
|
|
* This is an addition to the Debug Adapter Protocol to support
|
|
- * setting breakpoints for cells
|
|
|
|
|
|
+ * setting breakpoints for cells.
|
|
*/
|
|
*/
|
|
export interface IDumpCellArguments {
|
|
export interface IDumpCellArguments {
|
|
code: string;
|
|
code: string;
|
|
@@ -94,7 +99,7 @@ export namespace IDebugger {
|
|
/**
|
|
/**
|
|
* Response to 'dumpCell' request.
|
|
* Response to 'dumpCell' request.
|
|
* This is an addition to the Debug Adapter Protocol to support
|
|
* This is an addition to the Debug Adapter Protocol to support
|
|
- * setting breakpoints for cells
|
|
|
|
|
|
+ * setting breakpoints for cells.
|
|
*/
|
|
*/
|
|
export interface IDumpCellResponse extends DebugProtocol.Response {
|
|
export interface IDumpCellResponse extends DebugProtocol.Response {
|
|
body: {
|
|
body: {
|
|
@@ -102,6 +107,28 @@ export namespace IDebugger {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * List of breakpoints in a source file.
|
|
|
|
+ */
|
|
|
|
+ export interface IDebugInfoBreakpoints {
|
|
|
|
+ source: string;
|
|
|
|
+ lines: number[];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Response to 'debugInfo' request.
|
|
|
|
+ * This is an addition to the Debug Adapter Protocol to be able
|
|
|
|
+ * to retrieve the debugger state when restoring a session.
|
|
|
|
+ */
|
|
|
|
+ export interface IDebugInfoResponse extends DebugProtocol.Response {
|
|
|
|
+ body: {
|
|
|
|
+ isStarted: boolean;
|
|
|
|
+ hashMethod: string;
|
|
|
|
+ hashSeed: number;
|
|
|
|
+ breakpoints: IDebugInfoBreakpoints[];
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Expose all the debug requests types.
|
|
* Expose all the debug requests types.
|
|
*/
|
|
*/
|
|
@@ -110,7 +137,9 @@ export namespace IDebugger {
|
|
completions: DebugProtocol.CompletionsArguments;
|
|
completions: DebugProtocol.CompletionsArguments;
|
|
configurationDone: DebugProtocol.ConfigurationDoneArguments;
|
|
configurationDone: DebugProtocol.ConfigurationDoneArguments;
|
|
continue: DebugProtocol.ContinueArguments;
|
|
continue: DebugProtocol.ContinueArguments;
|
|
|
|
+ debugInfo: {};
|
|
disconnect: DebugProtocol.DisconnectArguments;
|
|
disconnect: DebugProtocol.DisconnectArguments;
|
|
|
|
+ dumpCell: IDumpCellArguments;
|
|
evaluate: DebugProtocol.EvaluateArguments;
|
|
evaluate: DebugProtocol.EvaluateArguments;
|
|
exceptionInfo: DebugProtocol.ExceptionInfoArguments;
|
|
exceptionInfo: DebugProtocol.ExceptionInfoArguments;
|
|
goto: DebugProtocol.GotoArguments;
|
|
goto: DebugProtocol.GotoArguments;
|
|
@@ -139,7 +168,6 @@ export namespace IDebugger {
|
|
terminate: DebugProtocol.TerminateArguments;
|
|
terminate: DebugProtocol.TerminateArguments;
|
|
terminateThreads: DebugProtocol.TerminateThreadsArguments;
|
|
terminateThreads: DebugProtocol.TerminateThreadsArguments;
|
|
threads: {};
|
|
threads: {};
|
|
- dumpCell: IDumpCellArguments;
|
|
|
|
variables: DebugProtocol.VariablesArguments;
|
|
variables: DebugProtocol.VariablesArguments;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -151,7 +179,9 @@ export namespace IDebugger {
|
|
completions: DebugProtocol.CompletionsResponse;
|
|
completions: DebugProtocol.CompletionsResponse;
|
|
configurationDone: DebugProtocol.ConfigurationDoneResponse;
|
|
configurationDone: DebugProtocol.ConfigurationDoneResponse;
|
|
continue: DebugProtocol.ContinueResponse;
|
|
continue: DebugProtocol.ContinueResponse;
|
|
|
|
+ debugInfo: IDebugInfoResponse;
|
|
disconnect: DebugProtocol.DisconnectResponse;
|
|
disconnect: DebugProtocol.DisconnectResponse;
|
|
|
|
+ dumpCell: IDumpCellResponse;
|
|
evaluate: DebugProtocol.EvaluateResponse;
|
|
evaluate: DebugProtocol.EvaluateResponse;
|
|
exceptionInfo: DebugProtocol.ExceptionInfoResponse;
|
|
exceptionInfo: DebugProtocol.ExceptionInfoResponse;
|
|
goto: DebugProtocol.GotoResponse;
|
|
goto: DebugProtocol.GotoResponse;
|
|
@@ -180,7 +210,6 @@ export namespace IDebugger {
|
|
terminate: DebugProtocol.TerminateResponse;
|
|
terminate: DebugProtocol.TerminateResponse;
|
|
terminateThreads: DebugProtocol.TerminateThreadsResponse;
|
|
terminateThreads: DebugProtocol.TerminateThreadsResponse;
|
|
threads: DebugProtocol.ThreadsResponse;
|
|
threads: DebugProtocol.ThreadsResponse;
|
|
- dumpCell: IDumpCellResponse;
|
|
|
|
variables: DebugProtocol.VariablesResponse;
|
|
variables: DebugProtocol.VariablesResponse;
|
|
};
|
|
};
|
|
|
|
|