__init__.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (c) Microsoft Corporation. All rights reserved.
  2. # Licensed under the MIT License. See LICENSE in the project root
  3. # for license information.
  4. """An implementation of the Debug Adapter Protocol (DAP) for Python.
  5. https://microsoft.github.io/debug-adapter-protocol/
  6. """
  7. # debugpy stable public API consists solely of members of this module that are
  8. # enumerated below.
  9. __all__ = [ # noqa
  10. "__version__",
  11. "breakpoint",
  12. "configure",
  13. "connect",
  14. "debug_this_thread",
  15. "get_cli_options",
  16. "is_client_connected",
  17. "listen",
  18. "log_to",
  19. "trace_this_thread",
  20. "wait_for_client",
  21. ]
  22. import sys
  23. assert sys.version_info >= (3, 7), (
  24. "Python 3.6 and below is not supported by this version of debugpy; "
  25. "use debugpy 1.5.1 or earlier."
  26. )
  27. # Actual definitions are in a separate file to work around parsing issues causing
  28. # SyntaxError on Python 2 and preventing the above version check from executing.
  29. from debugpy.public_api import * # noqa
  30. from debugpy.public_api import __version__
  31. del sys