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
19 lines (15 loc) · 733 Bytes
/
nodeDebug.ts
File metadata and controls
19 lines (15 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import {ChromeDebugSession, logger} from 'vscode-chrome-debug-core';
import * as path from 'path';
import * as os from 'os';
import {NodeDebugAdapter} from './nodeDebugAdapter';
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'
}));
/* tslint:disable:no-var-requires */
logger.log('node-debug2: ' + require('../../package.json').version);