From 1c6c71d4b9530d55137aa11a2bca7337cb3cbb50 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Thu, 18 Oct 2018 16:10:29 -0700 Subject: [PATCH] Fix DebugSession to match the new CLI syntax. --- pytests/helpers/session.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pytests/helpers/session.py b/pytests/helpers/session.py index 9d8dbe04..05f75b8e 100644 --- a/pytests/helpers/session.py +++ b/pytests/helpers/session.py @@ -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']