From cf1d0f4ef466c7242effee350c32199a8e6f3fab Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Mon, 5 Feb 2018 13:04:04 -0800 Subject: [PATCH] Add support for debugging on unix Fixes #34 --- ptvsd/wrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ptvsd/wrapper.py b/ptvsd/wrapper.py index 84f0f78a7..78c9aaf77 100644 --- a/ptvsd/wrapper.py +++ b/ptvsd/wrapper.py @@ -12,6 +12,7 @@ import threading import traceback import untangle +import platform try: import urllib @@ -306,7 +307,8 @@ def done(fut): def on_initialize(self, request, args): # TODO: docstring cmd = pydevd_comm.CMD_VERSION - msg = '1.1\tWINDOWS\tID' + os_id = 'WINDOWS' if platform.system() == 'Windows' else 'UNIX' + msg = '1.1\t{}\tID'.format(os_id) yield self.pydevd_request(cmd, msg) self.send_response( request,