Skip to content

Commit 01204a1

Browse files
committed
Fixed debugging of command-line tool.
1 parent 64708ce commit 01204a1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"name": "Pyright CLI",
66
"type": "node",
77
"request": "launch",
8-
"program": "${workspaceRoot}/index.js",
8+
"program": "${workspaceRoot}/index.debug.js",
99
"protocol": "inspector",
1010
"cwd": "${workspaceRoot}",
11-
"preLaunchTask": "npm: build:pyright",
11+
"preLaunchTask": "npm: build:analyzer",
1212
"args": [
1313
"-p",
1414
"${workspaceRoot}/../brain",

index.debug.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
3+
// Stash the base directory into a global variable.
4+
global.__rootDirectory = __dirname + '/dist/';
5+
6+
require('./client/server/pyright')

0 commit comments

Comments
 (0)