debugpy/tests/helpers/debuggee/dbgimporter.py
Karthik Nadig 9aaf937478
Removing old test code (#1088)
Removing old test code
2019-01-07 13:38:32 -08:00

9 lines
297 B
Python

import os
def import_and_enable_debugger():
if os.getenv('PTVSD_ENABLE_ATTACH', False):
import ptvsd
host = os.getenv('PTVSD_TEST_HOST', 'localhost')
port = os.getenv('PTVSD_TEST_PORT', '5678')
ptvsd.enable_attach((host, port))
ptvsd.wait_for_attach()