Skip to content

Commit 2c664f6

Browse files
Update initial launch.json for Python to use debugpy (#4096)
1 parent aac4f3a commit 2c664f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/debug/PythonDebugProvider.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ import { hostStartTaskName, localhost } from '../constants';
88
import { localize } from '../localize';
99
import { FuncDebugProviderBase } from './FuncDebugProviderBase';
1010

11+
export const defaultPythonDebugHost: string = 'localhost';
1112
export const defaultPythonDebugPort: number = 9091;
1213

1314
export const pythonDebugConfig: DebugConfiguration = {
1415
name: localize('attachPython', 'Attach to Python Functions'),
15-
type: 'python',
16+
type: 'debugpy',
1617
request: 'attach',
17-
port: defaultPythonDebugPort,
18+
connect: {
19+
host: defaultPythonDebugHost,
20+
port: defaultPythonDebugPort
21+
},
1822
preLaunchTask: hostStartTaskName
1923
};
2024

0 commit comments

Comments
 (0)