forked from microsoft/vscode-node-debug2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodeDebug.ts
More file actions
31 lines (26 loc) · 1.21 KB
/
nodeDebug.ts
File metadata and controls
31 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { ChromeDebugSession, logger, telemetry } from 'vscode-chrome-debug-core';
import * as path from 'path';
import * as os from 'os';
import { NodeDebugAdapter } from './nodeDebugAdapter';
import { NodeBreakpoints } from './nodeBreakpoints';
import { NodeScriptContainer } from './nodeScripts';
ChromeDebugSession.run(ChromeDebugSession.getSession(
{
logFilePath: path.join(os.tmpdir(), 'vscode-node-debug2.txt'), // non-.txt file types can't be uploaded to github
adapter: NodeDebugAdapter,
extensionName: 'node-debug2',
breakpoints: NodeBreakpoints,
scriptContainer: NodeScriptContainer
}));
/* tslint:disable:no-var-requires */
const debugAdapterVersion = require('../../package.json').version;
logger.log('node-debug2: ' + debugAdapterVersion);
/* __GDPR__FRAGMENT__
"DebugCommonProperties" : {
"Versions.DebugAdapter" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
telemetry.telemetry.addCustomGlobalProperty({'Versions.DebugAdapter': debugAdapterVersion});