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

Add ability to run without debugging #797

Merged
merged 2 commits into from
Sep 12, 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
8 changes: 7 additions & 1 deletion ptvsd/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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)