本文整理汇总了TypeScript中vscode-chrome-debug-core.ChromeDebugSession类的典型用法代码示例。如果您正苦于以下问题:TypeScript ChromeDebugSession类的具体用法?TypeScript ChromeDebugSession怎么用?TypeScript ChromeDebugSession使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ChromeDebugSession类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: require
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import {ChromeDebugSession, logger} from 'vscode-chrome-debug-core';
import * as path from 'path';
// Start a ChromeDebugSession configured to only match 'page' targets, which are Chrome tabs
ChromeDebugSession.run(ChromeDebugSession.getSession(
{
targetFilter: target => target && (!target.type || target.type === 'page'),
logFileDirectory: path.resolve(__dirname, '../../')
}));
/* tslint:disable:no-var-requires */
logger.log('debugger-for-chrome: ' + require('../../package.json').version);
开发者ID:lijunle,项目名称:vscode-chrome-debug,代码行数:16,代码来源:chromeDebug.ts
示例2:
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import {ChromeDebugSession} from 'vscode-chrome-debug-core';
ChromeDebugSession.run(ChromeDebugSession);
开发者ID:Grax32,项目名称:vscode-chrome-debug,代码行数:7,代码来源:chromeDebug.ts
示例3: require
import { ChromeDebugSession, logger, UrlPathTransformer, BaseSourceMapTransformer, telemetry } from 'vscode-chrome-debug-core';
import * as path from 'path';
import * as os from 'os';
import { targetFilter } from './utils';
import { ChromeDebugAdapter } from './chromeDebugAdapter';
const EXTENSION_NAME = 'debugger-for-chrome';
// Start a ChromeDebugSession configured to only match 'page' targets, which are Chrome tabs.
// Cast because DebugSession is declared twice - in this repo's vscode-debugadapter, and that of -core... TODO
ChromeDebugSession.run(ChromeDebugSession.getSession(
{
adapter: ChromeDebugAdapter,
extensionName: EXTENSION_NAME,
logFilePath: path.resolve(os.tmpdir(), 'vscode-chrome-debug.txt'),
targetFilter,
pathTransformer: UrlPathTransformer,
sourceMapTransformer: BaseSourceMapTransformer,
}));
/* tslint:disable:no-var-requires */
const debugAdapterVersion = require('../../package.json').version;
logger.log(EXTENSION_NAME + ': ' + debugAdapterVersion);
/* __GDPR__FRAGMENT__
"DebugCommonProperties" : {
"Versions.DebugAdapter" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
telemetry.telemetry.addCustomGlobalProperty({'Versions.DebugAdapter': debugAdapterVersion});
开发者ID:snailuncle,项目名称:vscode-chrome-debug,代码行数:32,代码来源:chromeDebug.ts
示例4:
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import {ChromeDebugSession} from 'vscode-chrome-debug-core';
import {EdgeDebugSession} from './edgeDebugSession';
ChromeDebugSession.run(EdgeDebugSession);
开发者ID:Microsoft,项目名称:vscode-edge-debug,代码行数:8,代码来源:edgeDebug.ts
注:本文中的vscode-chrome-debug-core.ChromeDebugSession类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论