• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript vscode-debugadapter.DebugSession类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript vscode-debugadapter.Handles类代码示例发布时间:2022-05-25
下一篇:
TypeScript vscode.debug类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap