Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Add support for debugging on unix #35

Merged
merged 1 commit into from
Feb 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ptvsd/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import threading
import traceback
import untangle
import platform

try:
import urllib
Expand Down Expand Up @@ -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,
Expand Down