mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
add debugpy-adapter entrypoint (#1870)
This commit is contained in:
parent
f7d8963f99
commit
2d220f8db8
2 changed files with 10 additions and 3 deletions
7
setup.py
7
setup.py
|
|
@ -196,6 +196,11 @@ if __name__ == "__main__":
|
|||
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
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ import sys
|
|||
# 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.
|
||||
|
|
@ -230,4 +232,4 @@ if __name__ == "__main__":
|
|||
# the default "C" locale if so.
|
||||
pass
|
||||
|
||||
main(_parse_argv(sys.argv))
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue