mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
24 lines
611 B
Python
24 lines
611 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
|
|
|
|
|
|
__author__ = "Microsoft Corporation <ptvshelp@microsoft.com>"
|
|
__version__ = "4.0.0a1"
|
|
|
|
DONT_DEBUG = []
|
|
|
|
|
|
def debug(filename, port_num, debug_id, debug_options, run_as):
|
|
# XXX docstring
|
|
# XXX Convert side-effects into explicit calls.
|
|
import ptvsd.wrapper
|
|
import pydevd
|
|
sys.argv[1:0] = [
|
|
'--port', str(port_num),
|
|
'--client', '127.0.0.1',
|
|
'--file', filename,
|
|
]
|
|
pydevd.main()
|