mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Add ability to run without debugging (#797)
* Add ability to run without debugging * Fix linter
This commit is contained in:
parent
7d2d2efa56
commit
c36bf32ab5
1 changed files with 7 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import sys
|
||||
|
||||
from ptvsd._local import run_module, run_file
|
||||
from ptvsd._local import run_module, run_file, run_main
|
||||
|
||||
|
||||
# TODO: not needed?
|
||||
|
|
@ -35,3 +35,9 @@ def debug(filename, port_num, debug_id, debug_options, run_as,
|
|||
args = _extra + list(args)
|
||||
kwargs.setdefault('singlesession', True)
|
||||
run(address, filename, *args, **kwargs)
|
||||
|
||||
|
||||
def run(filename, port_num, run_as,
|
||||
*args, **kwargs):
|
||||
address = (LOCALHOST, port_num)
|
||||
run_main(address, filename, run_as, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue