Fix DebugSession to match the new CLI syntax.

This commit is contained in:
Pavel Minaev 2018-10-18 16:10:29 -07:00
parent c7ee9277f3
commit 1c6c71d4b9

View file

@ -133,10 +133,11 @@ class DebugSession(object):
argv += ['-m', 'ptvsd']
if self.method == 'attach_socket':
argv += ['--port', str(self.ptvsd_port), '--wait']
argv += ['--wait']
else:
self._listen()
argv += ['--host', 'localhost', '--port', str(self.ptvsd_port)]
argv += ['--client']
argv += ['--host', 'localhost', '--port', str(self.ptvsd_port)]
if self.multiprocess:
argv += ['--multiprocess']