當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript vscode-debugadapter.DebugSession類代碼示例

本文整理匯總了TypeScript中vscode-debugadapter.DebugSession的典型用法代碼示例。如果您正苦於以下問題:TypeScript DebugSession類的具體用法?TypeScript DebugSession怎麽用?TypeScript DebugSession使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了DebugSession類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: log

				return this.sendErrorResponse(response, 2010, 'Unable to halt execution: "{e}"', { e: err.toString() });
			}
			log(state);
			this.sendResponse(response);
			log('PauseResponse');
		});
	}

	protected evaluateRequest(response: DebugProtocol.EvaluateResponse, args: DebugProtocol.EvaluateArguments): void {
		log('EvaluateRequest');
		let evalSymbolArgs = {
			symbol: args.expression,
			scope: {
				goroutineID: this.debugState.currentGoroutine.id,
				frame: args.frameId
			}
		};
		this.delve.call<DebugVariable>('EvalSymbol', [evalSymbolArgs], (err, variable) => {
			if (err) {
				logError('Failed to eval expression: ', JSON.stringify(evalSymbolArgs, null, ' '));
				return this.sendErrorResponse(response, 2009, 'Unable to eval expression: "{e}"', { e: err.toString() });
			}
			response.body = this.convertDebugVariableToProtocolVariable(variable, 0);
			this.sendResponse(response);
			log('EvaluateResponse');
		});
	}
}

DebugSession.run(GoDebugSession);
開發者ID:casualjim,項目名稱:vscode-go,代碼行數:30,代碼來源:goDebug.ts

示例2: attachRequest

					this.started = true;
					if (this.crashed)
						this.handlePause(undefined);
				});
			});
		}
	}

	protected attachRequest(response: DebugProtocol.AttachResponse, args: AttachRequestArguments): void {
		this.miDebugger = new MI2_LLDB(args.lldbmipath || "lldb-mi", [], args.debugger_args, args.env);
		this.initDebugger();
		this.quit = false;
		this.attached = true;
		this.needContinue = true;
		this.isSSH = false;
		this.debugReady = false;
		this.setValuesFormattingMode(args.valuesFormatting);
		this.miDebugger.printCalls = !!args.printCalls;
		this.miDebugger.debugOutput = !!args.showDevDebugOutput;
		this.miDebugger.attach(args.cwd, args.executable, args.target).then(() => {
			if (args.autorun)
				args.autorun.forEach(command => {
					this.miDebugger.sendUserInput(command);
				});
			this.sendResponse(response);
		});
	}
}

DebugSession.run(LLDBDebugSession);
開發者ID:swyphcosmo,項目名稱:code-debug,代碼行數:30,代碼來源:lldb.ts

示例3:

'use strict';

import { DebugSession } from "vscode-debugadapter";
import { DartDebugSession } from "./dart_debug_impl";

DebugSession.run(DartDebugSession);
開發者ID:devoncarew,項目名稱:Dart-Code,代碼行數:6,代碼來源:dart_debug_entry.ts

示例4: continueRequest

		console.log(args);
		this.sendResponse(response);
	}

	protected continueRequest(response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments): void {
		console.log(args);
		this.sendResponse(response);
		// no more lines: run to end
		this.sendEvent(new TerminatedEvent());
	}

	protected nextRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
		console.log(args);
		this.sendResponse(response);
		// no more lines: run to end
		this.sendEvent(new TerminatedEvent());
	}

	protected stepBackRequest(response: DebugProtocol.StepBackResponse, args: DebugProtocol.StepBackArguments): void {
		console.log(args);
		this.sendResponse(response);
	}

	protected evaluateRequest(response: DebugProtocol.EvaluateResponse, args: DebugProtocol.EvaluateArguments): void {
		console.log(args);
		this.sendResponse(response);
	}
}

DebugSession.run(C4EarthDebugSession);
開發者ID:nongdajun,項目名稱:c4-earth,代碼行數:30,代碼來源:c4earthjs-debug.ts

示例5: MI2

		this.miDebugger = new MI2(args.gdbpath || "gdb", ["-q", "--interpreter=mi2"]);
		this.initDebugger();
		this.quit = false;
		this.attached = !args.remote;
		this.needContinue = true;
		this.isSSH = false;
		this.debugReady = false;
		this.miDebugger.printCalls = !!args.printCalls;
		if (args.remote) {
			this.miDebugger.connect(args.cwd, args.executable, args.target).then(() => {
				if (args.autorun)
					args.autorun.forEach(command => {
						this.miDebugger.sendUserInput(command);
					});
				this.sendResponse(response);
			});
		}
		else {
			this.miDebugger.attach(args.cwd, args.executable, args.target).then(() => {
				if (args.autorun)
					args.autorun.forEach(command => {
						this.miDebugger.sendUserInput(command);
					});
				this.sendResponse(response);
			});
		}
	}
}

DebugSession.run(GDBDebugSession);
開發者ID:kosz78,項目名稱:code-debug,代碼行數:30,代碼來源:gdb.ts

示例6: nextRequest

    this.sendResponse(response);
  }

  protected nextRequest(response: DebugProtocol.NextResponse,
      args: DebugProtocol.NextArguments): void {
    this.sendStep("stepOver", response, args);
  }

  protected continueRequest(response: DebugProtocol.ContinueResponse,
      args: DebugProtocol.ContinueArguments): void {
    this.sendStep("resume", response, args);
  }

  protected stepInRequest(response: DebugProtocol.StepInResponse,
      args: DebugProtocol.StepInArguments): void {
    this.sendStep("stepInto", response, args);
  }

  protected stepOutRequest(response: DebugProtocol.StepOutResponse,
      args: DebugProtocol.StepOutArguments): void {
    this.sendStep("return", response, args);
  }

  protected pauseRequest(response: DebugProtocol.PauseResponse,
      args: DebugProtocol.PauseArguments): void {
    this.sendStep("stop", response, args);
  }
}

DebugSession.run(SomDebugSession);
開發者ID:smarr,項目名稱:SOMns-vscode,代碼行數:30,代碼來源:debugger.ts

示例7:

import { DebugSession } from "vscode-debugadapter";
import { DartTestDebugSession } from "./dart_test_debug_impl";

DebugSession.run(DartTestDebugSession);
開發者ID:DanTup,項目名稱:Dart-Code,代碼行數:4,代碼來源:dart_test_debug_entry.ts

示例8:

import { DebugSession } from "vscode-debugadapter";
import { FlutterWebTestDebugSession } from "./flutter_web_test_debug_impl";

DebugSession.run(FlutterWebTestDebugSession);
開發者ID:DanTup,項目名稱:Dart-Code,代碼行數:4,代碼來源:flutter_web_test_debug_entry.ts

示例9:

/*---------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/

import {WebKitDebugSession} from './webKitDebugSession';
import {DebugSession} from 'vscode-debugadapter';

DebugSession.run(WebKitDebugSession);
開發者ID:bundyo,項目名稱:nativescript-vscode-extension,代碼行數:8,代碼來源:webKitDebug.ts

示例10:

import { DebugSession } from "vscode-debugadapter";
import { FlutterDebugSession } from "./flutter_debug_impl";

DebugSession.run(FlutterDebugSession);
開發者ID:DanTup,項目名稱:Dart-Code,代碼行數:4,代碼來源:flutter_debug_entry.ts


注:本文中的vscode-debugadapter.DebugSession類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。