debugpy/ptvsd/debugger.py
2018-01-10 20:01:05 +00:00

26 lines
583 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
import sys
import pydevd
import ptvsd.wrapper
__author__ = "Microsoft Corporation <ptvshelp@microsoft.com>"
__version__ = "4.0.0a1"
DONT_DEBUG = []
def debug(filename, port_num, debug_id, debug_options, run_as):
# TODO: docstring
ptvsd.wrapper.install()
sys.argv[1:0] = [
'--port', str(port_num),
'--client', '127.0.0.1',
'--file', filename,
]
pydevd.main()