debugpy 1.8.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. debugpy-1.8.10/DESCRIPTION.md +3 -0
  2. debugpy-1.8.10/LICENSE +24 -0
  3. debugpy-1.8.10/MANIFEST.in +5 -0
  4. debugpy-1.8.10/PKG-INFO +27 -0
  5. debugpy-1.8.10/README.md +118 -0
  6. debugpy-1.8.10/pyproject.toml +79 -0
  7. debugpy-1.8.10/setup.cfg +18 -0
  8. debugpy-1.8.10/setup.py +201 -0
  9. debugpy-1.8.10/src/debugpy/ThirdPartyNotices.txt +499 -0
  10. debugpy-1.8.10/src/debugpy/__init__.py +38 -0
  11. debugpy-1.8.10/src/debugpy/__main__.py +71 -0
  12. debugpy-1.8.10/src/debugpy/_vendored/__init__.py +126 -0
  13. debugpy-1.8.10/src/debugpy/_vendored/_pydevd_packaging.py +48 -0
  14. debugpy-1.8.10/src/debugpy/_vendored/_util.py +59 -0
  15. debugpy-1.8.10/src/debugpy/_vendored/force_pydevd.py +81 -0
  16. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
  17. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +153 -0
  18. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +267 -0
  19. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +16 -0
  20. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
  21. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +133 -0
  22. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +372 -0
  23. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +485 -0
  24. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +23 -0
  25. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +134 -0
  26. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +77 -0
  27. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +53 -0
  28. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +349 -0
  29. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +641 -0
  30. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +38 -0
  31. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +12 -0
  32. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +95 -0
  33. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +504 -0
  34. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +30 -0
  35. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +68 -0
  36. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +284 -0
  37. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +1293 -0
  38. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +220 -0
  39. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +37 -0
  40. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +181 -0
  41. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +16 -0
  42. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
  43. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +884 -0
  44. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
  45. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +206 -0
  46. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +266 -0
  47. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +194 -0
  48. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +308 -0
  49. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +141 -0
  50. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +260 -0
  51. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
  52. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
  53. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +606 -0
  54. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +4190 -0
  55. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +325 -0
  56. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +143 -0
  57. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
  58. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +45 -0
  59. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +553 -0
  60. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
  61. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
  62. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +1200 -0
  63. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +181 -0
  64. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +938 -0
  65. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
  66. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +605 -0
  67. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +873 -0
  68. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +1930 -0
  69. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +200 -0
  70. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +181 -0
  71. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
  72. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +482 -0
  73. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +82 -0
  74. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +265 -0
  75. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +847 -0
  76. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +114 -0
  77. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55557 -0
  78. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +42 -0
  79. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +2173 -0
  80. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +63 -0
  81. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +202 -0
  82. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +64 -0
  83. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +123 -0
  84. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +178 -0
  85. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +5 -0
  86. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +107 -0
  87. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +65 -0
  88. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +338 -0
  89. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +1307 -0
  90. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +445 -0
  91. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +91 -0
  92. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +70 -0
  93. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +256 -0
  94. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
  95. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +147 -0
  96. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +586 -0
  97. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +558 -0
  98. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
  99. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +805 -0
  100. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +1354 -0
  101. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +252 -0
  102. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +433 -0
  103. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +830 -0
  104. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +339 -0
  105. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +395 -0
  106. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +130 -0
  107. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +201 -0
  108. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +152 -0
  109. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +412 -0
  110. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +544 -0
  111. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +106 -0
  112. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +237 -0
  113. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +92 -0
  114. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +550 -0
  115. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +89 -0
  116. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +517 -0
  117. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +852 -0
  118. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
  119. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +434 -0
  120. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +3 -0
  121. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
  122. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +43 -0
  123. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
  124. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +26454 -0
  125. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +131 -0
  126. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +747 -0
  127. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +613 -0
  128. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +121 -0
  129. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +363 -0
  130. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +5 -0
  131. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +18 -0
  132. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
  133. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +131 -0
  134. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +208 -0
  135. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +443 -0
  136. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +658 -0
  137. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +162 -0
  138. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +372 -0
  139. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +488 -0
  140. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +150 -0
  141. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +486 -0
  142. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +816 -0
  143. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +93 -0
  144. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +1486 -0
  145. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +157 -0
  146. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +351 -0
  147. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +258 -0
  148. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +974 -0
  149. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +15 -0
  150. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/COPYING +21 -0
  151. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/INSTALLER +1 -0
  152. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/METADATA +77 -0
  153. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/RECORD +42 -0
  154. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/REQUESTED +0 -0
  155. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/WHEEL +5 -0
  156. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/direct_url.json +1 -0
  157. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode-0.13.0.dev0.dist-info/top_level.txt +1 -0
  158. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +45 -0
  159. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1967 -0
  160. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +44954 -0
  161. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
  162. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1973 -0
  163. debugpy-1.8.10/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
  164. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +22 -0
  165. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_coverage.py +92 -0
  166. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/README +8 -0
  167. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
  168. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +614 -0
  169. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +150 -0
  170. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +37 -0
  171. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +37 -0
  172. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +95 -0
  173. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +198 -0
  174. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +201 -0
  175. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +201 -0
  176. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +25 -0
  177. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +173 -0
  178. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +154 -0
  179. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
  180. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +135 -0
  181. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +378 -0
  182. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +50 -0
  183. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
  184. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +152 -0
  185. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +1 -0
  186. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
  187. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevconsole.py +611 -0
  188. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd.py +3710 -0
  189. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +27 -0
  190. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
  191. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +3 -0
  192. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
  193. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
  194. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +603 -0
  195. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
  196. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +201 -0
  197. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +193 -0
  198. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp +113 -0
  199. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp +120 -0
  200. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp +62 -0
  201. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +194 -0
  202. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +85 -0
  203. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +98 -0
  204. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +704 -0
  205. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +63 -0
  206. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +4 -0
  207. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +111 -0
  208. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +11 -0
  209. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +4 -0
  210. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +10 -0
  211. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +55 -0
  212. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +247 -0
  213. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +4763 -0
  214. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +201 -0
  215. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +1908 -0
  216. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +1513 -0
  217. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +717 -0
  218. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +1877 -0
  219. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +2269 -0
  220. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +1983 -0
  221. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +4885 -0
  222. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +696 -0
  223. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +661 -0
  224. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +981 -0
  225. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +1227 -0
  226. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +1848 -0
  227. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +2108 -0
  228. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +1059 -0
  229. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +72 -0
  230. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +3687 -0
  231. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +816 -0
  232. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +461 -0
  233. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +1381 -0
  234. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +737 -0
  235. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
  236. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +5098 -0
  237. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
  238. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
  239. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +410 -0
  240. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +403 -0
  241. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +838 -0
  242. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +1832 -0
  243. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +1085 -0
  244. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +355 -0
  245. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +753 -0
  246. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +640 -0
  247. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +57 -0
  248. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +44 -0
  249. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +134 -0
  250. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +77 -0
  251. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +116 -0
  252. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +78 -0
  253. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +22 -0
  254. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +36 -0
  255. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +22 -0
  256. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +965 -0
  257. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +3 -0
  258. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +640 -0
  259. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +30 -0
  260. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +3 -0
  261. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +3 -0
  262. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +26 -0
  263. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +90 -0
  264. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +178 -0
  265. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +17 -0
  266. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +528 -0
  267. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +120 -0
  268. debugpy-1.8.10/src/debugpy/_vendored/pydevd/pydevd_tracing.py +407 -0
  269. debugpy-1.8.10/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +287 -0
  270. debugpy-1.8.10/src/debugpy/_version.py +21 -0
  271. debugpy-1.8.10/src/debugpy/adapter/__init__.py +14 -0
  272. debugpy-1.8.10/src/debugpy/adapter/__main__.py +233 -0
  273. debugpy-1.8.10/src/debugpy/adapter/clients.py +786 -0
  274. debugpy-1.8.10/src/debugpy/adapter/components.py +183 -0
  275. debugpy-1.8.10/src/debugpy/adapter/launchers.py +198 -0
  276. debugpy-1.8.10/src/debugpy/adapter/servers.py +620 -0
  277. debugpy-1.8.10/src/debugpy/adapter/sessions.py +293 -0
  278. debugpy-1.8.10/src/debugpy/common/__init__.py +18 -0
  279. debugpy-1.8.10/src/debugpy/common/json.py +292 -0
  280. debugpy-1.8.10/src/debugpy/common/log.py +411 -0
  281. debugpy-1.8.10/src/debugpy/common/messaging.py +1506 -0
  282. debugpy-1.8.10/src/debugpy/common/singleton.py +185 -0
  283. debugpy-1.8.10/src/debugpy/common/sockets.py +129 -0
  284. debugpy-1.8.10/src/debugpy/common/stacks.py +62 -0
  285. debugpy-1.8.10/src/debugpy/common/timestamp.py +22 -0
  286. debugpy-1.8.10/src/debugpy/common/util.py +164 -0
  287. debugpy-1.8.10/src/debugpy/launcher/__init__.py +32 -0
  288. debugpy-1.8.10/src/debugpy/launcher/__main__.py +91 -0
  289. debugpy-1.8.10/src/debugpy/launcher/debuggee.py +250 -0
  290. debugpy-1.8.10/src/debugpy/launcher/handlers.py +152 -0
  291. debugpy-1.8.10/src/debugpy/launcher/output.py +113 -0
  292. debugpy-1.8.10/src/debugpy/launcher/winapi.py +104 -0
  293. debugpy-1.8.10/src/debugpy/public_api.py +195 -0
  294. debugpy-1.8.10/src/debugpy/server/__init__.py +7 -0
  295. debugpy-1.8.10/src/debugpy/server/api.py +364 -0
  296. debugpy-1.8.10/src/debugpy/server/attach_pid_injected.py +92 -0
  297. debugpy-1.8.10/src/debugpy/server/cli.py +505 -0
  298. debugpy-1.8.10/src/debugpy.egg-info/PKG-INFO +27 -0
  299. debugpy-1.8.10/src/debugpy.egg-info/SOURCES.txt +302 -0
  300. debugpy-1.8.10/src/debugpy.egg-info/dependency_links.txt +1 -0
  301. debugpy-1.8.10/src/debugpy.egg-info/entry_points.txt +2 -0
  302. debugpy-1.8.10/src/debugpy.egg-info/top_level.txt +1 -0
  303. debugpy-1.8.10/versioneer.py +2146 -0
@@ -0,0 +1,3 @@
1
+ debugpy is an implementation of the Debug Adapter Protocol for Python.
2
+
3
+ The source code and the issue tracker is [hosted on GitHub](https://github.com/microsoft/debugpy/).
debugpy-1.8.10/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ debugpy
2
+
3
+ Copyright (c) Microsoft Corporation
4
+ All rights reserved.
5
+
6
+ MIT License
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
9
+ this software and associated documentation files (the "Software"), to deal in
10
+ the Software without restriction, including without limitation the rights to
11
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
12
+ the Software, and to permit persons to whom the Software is furnished to do so,
13
+ subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
20
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
21
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
22
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+
@@ -0,0 +1,5 @@
1
+ include LICENSE
2
+ include DESCRIPTION.md
3
+ global-exclude *.py[cdo]
4
+ include versioneer.py
5
+ include src/debugpy/_version.py
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.1
2
+ Name: debugpy
3
+ Version: 1.8.10
4
+ Summary: An implementation of the Debug Adapter Protocol for Python
5
+ Home-page: https://aka.ms/debugpy
6
+ Author: Microsoft Corporation
7
+ Author-email: ptvshelp@microsoft.com
8
+ License: MIT
9
+ Project-URL: Source, https://github.com/microsoft/debugpy
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Software Development :: Debuggers
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: License :: OSI Approved :: MIT License
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+
25
+ debugpy is an implementation of the Debug Adapter Protocol for Python.
26
+
27
+ The source code and the issue tracker is [hosted on GitHub](https://github.com/microsoft/debugpy/).
@@ -0,0 +1,118 @@
1
+ # debugpy - a debugger for Python
2
+
3
+ An implementation of the [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) for Python 3.
4
+
5
+ [![Build Status](https://dev.azure.com/debugpy/debugpy/_apis/build/status/debugpy-test-automation?branchName=main)](https://dev.azure.com/debugpy/debugpy/_build/latest?definitionId=1&branchName=main)
6
+ [![GitHub](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/microsoft/debugpy/main/LICENSE)
7
+ [![PyPI](https://img.shields.io/pypi/v/debugpy.svg)](https://pypi.org/project/debugpy/)
8
+ [![PyPI](https://img.shields.io/pypi/pyversions/debugpy.svg)](https://pypi.org/project/debugpy/)
9
+
10
+ #### Coverage
11
+
12
+ | OS | Coverage |
13
+ |---|---|
14
+ | Windows | ![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/debugpy/debugpy/2) |
15
+ | Linux | ![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/debugpy/debugpy/3) |
16
+ | Mac | ![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/debugpy/debugpy/4) |
17
+
18
+ ## `debugpy` CLI Usage
19
+
20
+ For full details, see the [Command Line Reference](https://github.com/microsoft/debugpy/wiki/Command-Line-Reference).
21
+
22
+ ### Debugging a script file
23
+ To run a script file with debugging enabled, but without waiting for the client to attach (i.e. code starts executing immediately):
24
+ ```console
25
+ -m debugpy --listen localhost:5678 myfile.py
26
+ ```
27
+ To wait until the client attaches before running your code, use the `--wait-for-client` switch.
28
+ ```console
29
+ -m debugpy --listen localhost:5678 --wait-for-client myfile.py
30
+ ```
31
+ The hostname passed to `--listen` specifies the interface on which the debug adapter will be listening for connections from DAP clients. It can be omitted, with only the port number specified:
32
+ ```console
33
+ -m debugpy --listen 5678 ...
34
+ ```
35
+ in which case the default interface is 127.0.0.1.
36
+
37
+ To be able to attach from another machine, make sure that the adapter is listening on a public interface - using `0.0.0.0` will make it listen on all available interfaces:
38
+ ```console
39
+ -m debugpy --listen 0.0.0.0:5678 myfile.py
40
+ ```
41
+ This should only be done on secure networks, since anyone who can connect to the specified port can then execute arbitrary code within the debugged process.
42
+
43
+ To pass arguments to the script, just specify them after the filename. This works the same as with Python itself - everything up to the filename is processed by debugpy, but everything after that becomes `sys.argv` of the running process.
44
+
45
+ ### Debugging a module
46
+ To run a module, use the `-m` switch instead of filename:
47
+ ```console
48
+ -m debugpy --listen localhost:5678 -m mymodule
49
+ ```
50
+ Same as with scripts, command line arguments can be passed to the module by specifying them after the module name. All other debugpy switches work identically in this mode; in particular, `--wait-for-client` can be used to block execution until the client attaches.
51
+
52
+ ### Attaching to a running process by ID
53
+ The following command injects the debugger into a process with a given PID that is running Python code. Once the command returns, a debugpy server is running within the process, as if that process was launched via `-m debugpy` itself.
54
+ ```console
55
+ -m debugpy --listen localhost:5678 --pid 12345
56
+ ```
57
+
58
+ ### Ignoring subprocesses
59
+ The following command will ignore subprocesses started by the debugged process.
60
+ ```console
61
+ -m debugpy --listen localhost:5678 --pid 12345 --configure-subProcess False
62
+ ```
63
+
64
+
65
+ ## `debugpy` Import usage
66
+
67
+ For full details, see the [API reference](https://github.com/microsoft/debugpy/wiki/API-Reference).
68
+
69
+ ### Enabling debugging
70
+ At the beginning of your script, import debugpy, and call `debugpy.listen()` to start the debug adapter, passing a `(host, port)` tuple as the first argument.
71
+ ```python
72
+ import debugpy
73
+ debugpy.listen(("localhost", 5678))
74
+ ...
75
+ ```
76
+ As with the `--listen` command line switch, hostname can be omitted, and defaults to `"127.0.0.1"`:
77
+ ```python
78
+ debugpy.listen(5678)
79
+ ...
80
+ ```
81
+
82
+ ### Waiting for the client to attach
83
+ Use the `debugpy.wait_for_client()` function to block program execution until the client is attached.
84
+ ```python
85
+ import debugpy
86
+ debugpy.listen(5678)
87
+ debugpy.wait_for_client() # blocks execution until client is attached
88
+ ...
89
+ ```
90
+
91
+ ### `breakpoint()` function
92
+ Where available, debugpy supports the standard `breakpoint()` function for programmatic breakpoints. Use `debugpy.breakpoint()` function to get the same behavior when `breakpoint()` handler installed by debugpy is overridden by another handler. If the debugger is attached when either of these functions is invoked, it will pause execution on the calling line, as if it had a breakpoint set. If there's no client attached, the functions do nothing, and the code continues to execute normally.
93
+ ```python
94
+ import debugpy
95
+ debugpy.listen(...)
96
+
97
+ while True:
98
+ ...
99
+ breakpoint() # or debugpy.breakpoint()
100
+ ...
101
+ ```
102
+
103
+ ## Debugger logging
104
+
105
+ To enable debugger internal logging via CLI, the `--log-to` switch can be used:
106
+ ```console
107
+ -m debugpy --log-to path/to/logs ...
108
+ ```
109
+
110
+ When using the API, the same can be done with `debugpy.log_to()`:
111
+ ```py
112
+ debugpy.log_to('path/to/logs')
113
+ debugpy.listen(...)
114
+ ```
115
+
116
+ In both cases, the environment variable `DEBUGPY_LOG_DIR` can also be set to the same effect.
117
+
118
+ When logging is enabled, debugpy will create several log files with names matching `debugpy*.log` in the specified directory, corresponding to different components of the debugger. When subprocess debugging is enabled, separate logs are created for every subprocess.
@@ -0,0 +1,79 @@
1
+ [build-system]
2
+ requires = ["wheel", "setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+
6
+ [tool.black]
7
+ exclude = '''
8
+ ( __pycache__
9
+ | ^/.tox
10
+ | ^/versioneer.py
11
+ | ^/src/debugpy/_vendored
12
+ | ^/src/debugpy/_version.py
13
+ )
14
+ '''
15
+
16
+ [tool.pyright]
17
+ pythonVersion = "3.8"
18
+ include = ["src/**", "tests/**" ]
19
+ extraPaths = ["src/debugpy/_vendored/pydevd", "src/debugpy/_vendored/pydevd/pydevd_attach_to_process"]
20
+ ignore = ["src/debugpy/_vendored/pydevd", "src/debugpy/_version.py"]
21
+ executionEnvironments = [
22
+ { root = "src" }, { root = "." }
23
+ ]
24
+
25
+ [tool.ruff]
26
+ # Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
27
+ # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
28
+ # McCabe complexity (`C901`) by default.
29
+ select = ["E", "F"]
30
+ ignore = [
31
+ "E203", "E221", "E222", "E226", "E261", "E262", "E265", "E266",
32
+ "E401", "E402",
33
+ "E501",
34
+ "E722", "E731"
35
+ ]
36
+
37
+ # Allow autofix for all enabled rules (when `--fix`) is provided.
38
+ fixable = ["ALL"]
39
+ unfixable = []
40
+
41
+ # Exclude a variety of commonly ignored directories.
42
+ exclude = [
43
+ ".bzr",
44
+ ".direnv",
45
+ ".eggs",
46
+ ".git",
47
+ ".git-rewrite",
48
+ ".hg",
49
+ ".mypy_cache",
50
+ ".nox",
51
+ ".pants.d",
52
+ ".pytype",
53
+ ".ruff_cache",
54
+ ".svn",
55
+ ".tox",
56
+ ".venv",
57
+ "__pypackages__",
58
+ "_build",
59
+ "buck-out",
60
+ "build",
61
+ "dist",
62
+ "node_modules",
63
+ "venv",
64
+ "versioneer.py",
65
+ "src/debugpy/_vendored/pydevd"
66
+ ]
67
+
68
+ # Same as Black.
69
+ line-length = 88
70
+
71
+ # Allow unused variables when underscore-prefixed.
72
+ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
73
+
74
+ # Assume Python 3.8
75
+ target-version = "py38"
76
+
77
+ [tool.ruff.per-file-ignores]
78
+ "tests/debugpy/test_breakpoints.py" = ["F841"]
79
+ "tests/debugpy/test_output.py" = ["F841"]
@@ -0,0 +1,18 @@
1
+ [metadata]
2
+ license_files = LICENSE
3
+
4
+ [versioneer]
5
+ VCS = git
6
+ style = pep440
7
+ versionfile_source = src/debugpy/_version.py
8
+ versionfile_build = debugpy/_version.py
9
+ tag_prefix = v
10
+ parentdir_prefix = debugpy-
11
+
12
+ [aliases]
13
+ test = pytest
14
+
15
+ [egg_info]
16
+ tag_build =
17
+ tag_date = 0
18
+
@@ -0,0 +1,201 @@
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation. All rights reserved.
4
+ # Licensed under the MIT License. See LICENSE in the project root
5
+ # for license information.
6
+
7
+ import os
8
+ import os.path
9
+ import setuptools
10
+ import subprocess
11
+ import sys
12
+
13
+
14
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
15
+ import versioneer # noqa
16
+
17
+ del sys.path[0]
18
+
19
+ sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "src"))
20
+ import debugpy
21
+ import debugpy._vendored
22
+
23
+ del sys.path[0]
24
+
25
+
26
+ PYDEVD_ROOT = debugpy._vendored.project_root("pydevd")
27
+ DEBUGBY_ROOT = os.path.dirname(os.path.abspath(debugpy.__file__))
28
+
29
+
30
+ def get_buildplatform():
31
+ if "-p" in sys.argv:
32
+ return sys.argv[sys.argv.index("-p") + 1]
33
+ return None
34
+
35
+
36
+ # bdist_wheel determines whether the package is pure or not based on ext_modules.
37
+ # However, all pydevd native modules are prebuilt and packaged as data, so they
38
+ # should not be in the list.
39
+ #
40
+ # The proper way to handle this is by overriding has_ext_modules. However, due to
41
+ # https://bugs.python.org/issue32957, in setuptools 57.0.0 and below, it is not
42
+ # always called when it should be, with ext_modules tested directly instead.
43
+ #
44
+ # So, for non-pure builds, we provide a customized empty list for ext_modules that
45
+ # tests as truthful - this causes the package to be treated as non-pure on all
46
+ # relevant setuptools versions.
47
+ class ExtModules(list):
48
+ def __bool__(self):
49
+ return True
50
+
51
+
52
+ def override_build(cmds):
53
+ def finalize_options(self):
54
+ # Mark all packages as pure if requested to build a universal wheel.
55
+ # Otherwise, bdist_wheel will silently ignore the request.
56
+ bdist_wheel = self.distribution.get_command_obj("bdist_wheel", 0)
57
+ if bdist_wheel is not None and bdist_wheel.universal:
58
+ self.distribution.ext_modules = []
59
+ self.distribution.has_ext_modules = lambda: False
60
+ original(self)
61
+
62
+ try:
63
+ build = cmds["build"]
64
+ except KeyError:
65
+ from distutils.command.build import build
66
+ original = build.finalize_options
67
+ build.finalize_options = finalize_options
68
+
69
+
70
+ def override_build_py(cmds):
71
+ # Add vendored packages as data files for this package, and filter platform-specific binaries
72
+ # in data files for binary builds.
73
+ def finalize_options(self):
74
+ original(self)
75
+
76
+ # Ensure that pydevd extensions are present for inclusion into data_files.
77
+ self.announce(
78
+ "Compiling pydevd Cython extension modules (set SKIP_CYTHON_BUILD=1 to omit)."
79
+ )
80
+ try:
81
+ subprocess.check_call(
82
+ [
83
+ sys.executable,
84
+ os.path.join(PYDEVD_ROOT, "setup_pydevd_cython.py"),
85
+ "build_ext",
86
+ "--inplace",
87
+ ]
88
+ )
89
+ except subprocess.SubprocessError:
90
+ # pydevd Cython extensions are optional performance enhancements, and debugpy is
91
+ # usable without them. Thus, we want to ignore build errors here by default, so
92
+ # that a user can do `pip install debugpy` on a platform for which we don't supply
93
+ # prebuild wheels even if they don't have the C build tools installed. On the other
94
+ # hand, for our own official builds and for local development, we want to know if
95
+ # the extensions fail to build.
96
+ if int(os.getenv("REQUIRE_CYTHON_BUILD", "0")):
97
+ raise
98
+ self.warn(
99
+ "Failed to compile pydevd Cython extension modules (set SKIP_CYTHON_BUILD=1 to omit); proceeding without them."
100
+ )
101
+
102
+ # Register pydevd and other vendored packages as package data for debugpy.
103
+ vendored_files = self.package_data["debugpy._vendored"]
104
+ for project in debugpy._vendored.list_all():
105
+ for filename in debugpy._vendored.iter_packaging_files(project):
106
+ vendored_files.append(filename)
107
+
108
+ # Don't filter anything for universal wheels.
109
+ if not self.distribution.ext_modules:
110
+ return
111
+
112
+ plat = self.get_finalized_command("build").plat_name
113
+
114
+ def is_applicable(filename):
115
+ def tail_is(*suffixes):
116
+ return any((filename.endswith(ext) for ext in suffixes))
117
+
118
+ if tail_is(".dylib"):
119
+ return plat.startswith("macosx")
120
+ if tail_is(".exe", ".dll", ".pdb", ".pyd"):
121
+ return plat in ("win32", "win-amd64")
122
+ if tail_is("-i386-linux-gnu.so", "_linux_x86.so"):
123
+ return plat == "linux-i686"
124
+ if tail_is("-x86_64-linux-gnu.so", "_linux_amd64.so"):
125
+ return plat == "linux-x86_64"
126
+ return True
127
+
128
+ vendored_files[:] = list(filter(is_applicable, vendored_files))
129
+
130
+ try:
131
+ build_py = cmds["build_py"]
132
+ except KeyError:
133
+ from setuptools.command.build_py import build_py
134
+ original = build_py.finalize_options
135
+ build_py.finalize_options = finalize_options
136
+
137
+
138
+ with open("DESCRIPTION.md", "r") as fh:
139
+ long_description = fh.read()
140
+
141
+
142
+ if __name__ == "__main__":
143
+ extras = {}
144
+ platforms = get_buildplatform()
145
+ if platforms is not None:
146
+ extras["platforms"] = platforms
147
+
148
+ cmds = versioneer.get_cmdclass()
149
+ override_build(cmds)
150
+ override_build_py(cmds)
151
+
152
+ setuptools.setup(
153
+ name="debugpy",
154
+ version=versioneer.get_version(),
155
+ description="An implementation of the Debug Adapter Protocol for Python", # noqa
156
+ long_description=long_description,
157
+ long_description_content_type="text/markdown",
158
+ license="MIT",
159
+ author="Microsoft Corporation",
160
+ author_email="ptvshelp@microsoft.com",
161
+ url="https://aka.ms/debugpy",
162
+ project_urls={
163
+ "Source": "https://github.com/microsoft/debugpy",
164
+ },
165
+ python_requires=">=3.8",
166
+ classifiers=[
167
+ "Development Status :: 5 - Production/Stable",
168
+ "Programming Language :: Python :: 3.8",
169
+ "Programming Language :: Python :: 3.9",
170
+ "Programming Language :: Python :: 3.10",
171
+ "Programming Language :: Python :: 3.11",
172
+ "Programming Language :: Python :: 3.12",
173
+ "Topic :: Software Development :: Debuggers",
174
+ "Operating System :: Microsoft :: Windows",
175
+ "Operating System :: MacOS",
176
+ "Operating System :: POSIX",
177
+ "License :: OSI Approved :: MIT License",
178
+ ],
179
+ package_dir={"": "src"},
180
+ packages=[
181
+ "debugpy",
182
+ "debugpy.adapter",
183
+ "debugpy.common",
184
+ "debugpy.launcher",
185
+ "debugpy.server",
186
+ "debugpy._vendored",
187
+ ],
188
+ package_data={
189
+ "debugpy": ["ThirdPartyNotices.txt"],
190
+ "debugpy._vendored": [
191
+ # pydevd extensions must be built before this list can be computed properly,
192
+ # so it is populated in the overridden build_py.finalize_options().
193
+ ],
194
+ },
195
+ ext_modules=ExtModules(),
196
+ has_ext_modules=lambda: True,
197
+ cmdclass=cmds,
198
+ # allow the user to call "debugpy" instead of "python -m debugpy"
199
+ entry_points={"console_scripts": ["debugpy = debugpy.server.cli:main"]},
200
+ **extras
201
+ )