当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript DebugClient.hitBreakpoint方法代码示例

本文整理汇总了TypeScript中vscode-debugadapter-testsupport.DebugClient.hitBreakpoint方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DebugClient.hitBreakpoint方法的具体用法?TypeScript DebugClient.hitBreakpoint怎么用?TypeScript DebugClient.hitBreakpoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vscode-debugadapter-testsupport.DebugClient的用法示例。


在下文中一共展示了DebugClient.hitBreakpoint方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: test

		test('should stop on a breakpoint in file with spaces in its name', () => {

			const PROGRAM = Path.join(DATA_ROOT, 'folder with spaces', 'file with spaces.js');
			const BREAKPOINT_LINE = 2;

			return dc.hitBreakpoint({ program: PROGRAM }, { path: PROGRAM, line: BREAKPOINT_LINE} );
		});
开发者ID:abug,项目名称:vscode-node-debug,代码行数:7,代码来源:adapter.test.ts

示例2: test

		test('should return current file/line informatiom from custom request', () => {

			const PROGRAM = Path.join(DATA_ROOT, 'test.md');
			const BREAKPOINT_LINE = 2;

			return dc.hitBreakpoint({ program: PROGRAM }, { path: PROGRAM, line: BREAKPOINT_LINE } ).then(_ => {
				return dc.send('infoRequest').then(response => {
					assert.equal(response.body.currentFile, PROGRAM, "response mismatch: 'currentFile'");
					assert.equal(response.body.currentLine, BREAKPOINT_LINE, "response mismatch: 'currentLine'");
				});
			});
		});
开发者ID:BlockWorksCo,项目名称:Playground,代码行数:12,代码来源:adapter.test.ts

示例3: test

		test('should stop on a breakpoint in source (all files top level, missing sourceMappingURL)', () => {

			const PROGRAM = Path.join(DATA_ROOT, 'sourcemaps-simple-no-sourceMappingURL/classes.js');
			const TS_SOURCE = Path.join(DATA_ROOT, 'sourcemaps-simple-no-sourceMappingURL/classes.ts');
			const TS_LINE = 17;

			return dc.hitBreakpoint({
				program: PROGRAM,
				runtimeArgs: [ '--nolazy' ]
			}, {
				path: TS_SOURCE,
				line: TS_LINE
			});
		});
开发者ID:rlugojr,项目名称:vscode-node-debug,代码行数:14,代码来源:adapter.test.ts


注:本文中的vscode-debugadapter-testsupport.DebugClient.hitBreakpoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。