Skip to content

Commit a20502b

Browse files
author
Hani Amr
authored
Fall back to not do args escaping in order to avoid breaking existing projects (#2053)
1 parent 045e16f commit a20502b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

resources/python/launcher.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616

1717
dockerExecArgs = ['docker', 'exec', '-d', containerId, 'python', '/pydbg/debugpy/launcher'] + args
1818

19-
print(' '.join(dockerExecArgs))
20-
os.execvp('docker', dockerExecArgs)
19+
command = ' '.join(dockerExecArgs)
20+
21+
print(command)
22+
os.system(command)

src/utils/pythonUtils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export function inferPythonArgs(projectType: PythonProjectType, ports: number[])
3939
'run',
4040
'--no-debugger',
4141
'--no-reload',
42-
'--host 0.0.0.0',
43-
`--port ${ports !== undefined ? ports[0] : PythonDefaultPorts.get(projectType)}`,
42+
'--host', '0.0.0.0',
43+
'--port', `${ports !== undefined ? ports[0] : PythonDefaultPorts.get(projectType)}`,
4444
]
4545
default:
4646
return undefined;

0 commit comments

Comments
 (0)