Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ def tail_is(*suffixes):
has_ext_modules=lambda: True,
cmdclass=cmds,
# allow the user to call "debugpy" instead of "python -m debugpy"
entry_points={"console_scripts": ["debugpy = debugpy.server.cli:main"]},
entry_points={
"console_scripts": [
"debugpy = debugpy.server.cli:main",
"debugpy-adapter = debugpy.adapter.__main__:main",
],
},
**extras
)
6 changes: 4 additions & 2 deletions src/debugpy/adapter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# and should be imported locally inside main() instead.


def main(args):
def main():
args = _parse_argv(sys.argv)

# If we're talking DAP over stdio, stderr is not guaranteed to be read from,
# so disable it to avoid the pipe filling and locking up. This must be done
# as early as possible, before the logging module starts writing to it.
Expand Down Expand Up @@ -230,4 +232,4 @@ def _parse_argv(argv):
# the default "C" locale if so.
pass

main(_parse_argv(sys.argv))
main()
Loading