debugpy 1.8.5__zip → 1.8.7__zip

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 (340) hide show
  1. {debugpy-1.8.5/src/debugpy.egg-info → debugpy-1.8.7}/PKG-INFO +1 -1
  2. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +19 -21
  3. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +30 -30
  4. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +3 -1
  5. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
  6. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +35 -32
  7. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +83 -84
  8. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +92 -99
  9. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +2 -3
  10. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +51 -27
  11. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +11 -7
  12. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +6 -5
  13. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +34 -38
  14. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +71 -69
  15. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +1 -3
  16. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +0 -1
  17. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +14 -16
  18. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +81 -93
  19. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +3 -3
  20. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +9 -8
  21. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +33 -25
  22. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +183 -170
  23. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +33 -29
  24. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +6 -4
  25. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +19 -18
  26. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +3 -3
  27. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +165 -138
  28. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
  29. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +35 -36
  30. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +22 -23
  31. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +37 -57
  32. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +54 -52
  33. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +28 -37
  34. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +56 -53
  35. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +604 -0
  36. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +551 -445
  37. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +25 -29
  38. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
  39. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +11 -12
  40. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +18 -19
  41. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
  42. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
  43. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +263 -214
  44. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +7 -10
  45. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +187 -92
  46. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
  47. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +46 -51
  48. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +239 -176
  49. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +370 -297
  50. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +78 -86
  51. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +55 -59
  52. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +194 -58
  53. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +2 -3
  54. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +18 -23
  55. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +159 -127
  56. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +10 -12
  57. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55527 -0
  58. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +15 -0
  59. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +803 -511
  60. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +18 -7
  61. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +32 -24
  62. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +11 -13
  63. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +16 -16
  64. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +27 -2
  65. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +1 -1
  66. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +4 -5
  67. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +8 -10
  68. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +50 -45
  69. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +462 -407
  70. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +69 -61
  71. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +14 -16
  72. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +27 -25
  73. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +40 -42
  74. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
  75. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +20 -19
  76. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +199 -108
  77. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +121 -73
  78. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
  79. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +206 -159
  80. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +346 -334
  81. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +75 -80
  82. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +35 -35
  83. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +116 -124
  84. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +44 -58
  85. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +51 -55
  86. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +4 -2
  87. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +24 -24
  88. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +19 -20
  89. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +45 -49
  90. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +61 -58
  91. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +23 -13
  92. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +29 -31
  93. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +41 -11
  94. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +117 -55
  95. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +11 -14
  96. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +90 -89
  97. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +106 -97
  98. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
  99. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +56 -46
  100. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +5 -5
  101. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
  102. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +11165 -5326
  103. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +5 -6
  104. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +53 -56
  105. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +1 -0
  106. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +4 -6
  107. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +6 -26
  108. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +7 -21
  109. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +5 -24
  110. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +10 -34
  111. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +1 -4
  112. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +2 -6
  113. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +3 -5
  114. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +11 -31
  115. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +2 -2
  116. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +14 -41
  117. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +2 -4
  118. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +7 -18
  119. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +6 -18
  120. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +7 -18
  121. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +1 -3
  122. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +14 -19
  123. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1929 -0
  124. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +43253 -0
  125. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
  126. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1935 -0
  127. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
  128. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +12 -11
  129. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_coverage.py +30 -32
  130. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +58 -54
  131. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +20 -24
  132. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +8 -7
  133. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +8 -6
  134. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +11 -8
  135. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +21 -18
  136. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +17 -15
  137. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +17 -15
  138. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +6 -4
  139. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +14 -10
  140. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +30 -26
  141. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
  142. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +37 -34
  143. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +86 -73
  144. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +7 -7
  145. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
  146. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +23 -24
  147. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
  148. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevconsole.py +55 -47
  149. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd.py +732 -508
  150. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
  151. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +1 -0
  152. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
  153. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
  154. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +130 -125
  155. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
  156. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
  157. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
  158. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +41 -32
  159. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
  160. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
  161. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +1 -0
  162. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +9 -1
  163. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
  164. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
  165. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe +0 -0
  166. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
  167. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +10 -9
  168. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
  169. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
  170. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
  171. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
  172. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +103 -119
  173. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +457 -516
  174. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +33 -15
  175. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +336 -281
  176. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +101 -131
  177. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +148 -153
  178. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +310 -302
  179. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +235 -208
  180. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +185 -218
  181. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +428 -564
  182. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +54 -53
  183. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +69 -73
  184. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +158 -170
  185. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +143 -213
  186. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +302 -333
  187. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +220 -239
  188. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +198 -177
  189. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +11 -11
  190. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +1191 -713
  191. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +248 -194
  192. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +132 -120
  193. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +450 -346
  194. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +305 -286
  195. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
  196. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +1479 -1097
  197. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
  198. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
  199. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +54 -31
  200. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +170 -149
  201. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +190 -108
  202. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +542 -437
  203. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +489 -442
  204. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +83 -65
  205. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +70 -76
  206. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +17 -9
  207. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +1 -1
  208. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +141 -120
  209. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +1 -0
  210. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +175 -149
  211. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +1 -0
  212. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +1 -0
  213. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +5 -5
  214. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +28 -28
  215. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +22 -30
  216. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +3 -2
  217. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +130 -108
  218. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +27 -14
  219. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_tracing.py +85 -66
  220. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +96 -59
  221. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_version.py +3 -3
  222. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/messaging.py +2 -1
  223. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/cli.py +32 -17
  224. {debugpy-1.8.5 → debugpy-1.8.7/src/debugpy.egg-info}/PKG-INFO +1 -1
  225. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/SOURCES.txt +6 -1
  226. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +0 -41
  227. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +0 -76
  228. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +0 -592
  229. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +0 -19514
  230. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +0 -19
  231. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +0 -153
  232. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +0 -43377
  233. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +0 -204
  234. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +0 -91
  235. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py +0 -62
  236. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +0 -41
  237. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +0 -48
  238. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +0 -23
  239. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_pysrc.py +0 -1
  240. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +0 -237
  241. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +0 -32
  242. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +0 -9
  243. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +0 -74
  244. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
  245. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
  246. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +0 -79
  247. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
  248. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
  249. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
  250. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
  251. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
  252. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
  253. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
  254. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
  255. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
  256. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +0 -507
  257. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +0 -539
  258. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +0 -3435
  259. {debugpy-1.8.5 → debugpy-1.8.7}/DESCRIPTION.md +0 -0
  260. {debugpy-1.8.5 → debugpy-1.8.7}/LICENSE +0 -0
  261. {debugpy-1.8.5 → debugpy-1.8.7}/MANIFEST.in +0 -0
  262. {debugpy-1.8.5 → debugpy-1.8.7}/README.md +0 -0
  263. {debugpy-1.8.5 → debugpy-1.8.7}/pyproject.toml +0 -0
  264. {debugpy-1.8.5 → debugpy-1.8.7}/setup.cfg +0 -0
  265. {debugpy-1.8.5 → debugpy-1.8.7}/setup.py +0 -0
  266. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/ThirdPartyNotices.txt +0 -0
  267. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__init__.py +0 -0
  268. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__main__.py +0 -0
  269. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/__init__.py +0 -0
  270. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_pydevd_packaging.py +0 -0
  271. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_util.py +0 -0
  272. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/force_pydevd.py +0 -0
  273. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
  274. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
  275. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
  276. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
  277. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +0 -0
  278. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
  279. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +0 -0
  280. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
  281. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +0 -0
  282. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +0 -0
  283. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +0 -0
  284. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +0 -0
  285. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +0 -0
  286. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
  287. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/README +0 -0
  288. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
  289. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +0 -0
  290. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +0 -0
  291. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +0 -0
  292. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp +0 -0
  293. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp +0 -0
  294. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp +0 -0
  295. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +0 -0
  296. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +0 -0
  297. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +0 -0
  298. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +0 -0
  299. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +0 -0
  300. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +0 -0
  301. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +0 -0
  302. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +0 -0
  303. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +0 -0
  304. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +0 -0
  305. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +0 -0
  306. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +0 -0
  307. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +0 -0
  308. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +0 -0
  309. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +0 -0
  310. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +0 -0
  311. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +0 -0
  312. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__init__.py +0 -0
  313. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__main__.py +0 -0
  314. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/clients.py +0 -0
  315. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/components.py +0 -0
  316. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/launchers.py +0 -0
  317. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/servers.py +0 -0
  318. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/sessions.py +0 -0
  319. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/__init__.py +0 -0
  320. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/json.py +0 -0
  321. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/log.py +0 -0
  322. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/singleton.py +0 -0
  323. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/sockets.py +0 -0
  324. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/stacks.py +0 -0
  325. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/timestamp.py +0 -0
  326. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/util.py +0 -0
  327. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__init__.py +0 -0
  328. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__main__.py +0 -0
  329. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/debuggee.py +0 -0
  330. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/handlers.py +0 -0
  331. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/output.py +0 -0
  332. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/winapi.py +0 -0
  333. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/public_api.py +0 -0
  334. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/__init__.py +0 -0
  335. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/api.py +0 -0
  336. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/attach_pid_injected.py +0 -0
  337. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/dependency_links.txt +0 -0
  338. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/entry_points.txt +0 -0
  339. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/top_level.txt +0 -0
  340. {debugpy-1.8.5 → debugpy-1.8.7}/versioneer.py +0 -0
@@ -4,21 +4,46 @@ import os
4
4
  import sys
5
5
  import socket as socket_module
6
6
 
7
- from _pydev_bundle._pydev_imports_tipper import TYPE_IMPORT, TYPE_CLASS, TYPE_FUNCTION, TYPE_ATTR, \
8
- TYPE_BUILTIN, TYPE_PARAM
7
+ from _pydev_bundle._pydev_imports_tipper import TYPE_IMPORT, TYPE_CLASS, TYPE_FUNCTION, TYPE_ATTR, TYPE_BUILTIN, TYPE_PARAM
9
8
  from _pydev_bundle.pydev_is_thread_alive import is_thread_alive
10
9
  from _pydev_bundle.pydev_override import overrides
11
10
  from _pydevd_bundle._debug_adapter import pydevd_schema
12
- from _pydevd_bundle._debug_adapter.pydevd_schema import ModuleEvent, ModuleEventBody, Module, \
13
- OutputEventBody, OutputEvent, ContinuedEventBody, ExitedEventBody, \
14
- ExitedEvent
15
- from _pydevd_bundle.pydevd_comm_constants import CMD_THREAD_CREATE, CMD_RETURN, CMD_MODULE_EVENT, \
16
- CMD_WRITE_TO_CONSOLE, CMD_STEP_INTO, CMD_STEP_INTO_MY_CODE, CMD_STEP_OVER, CMD_STEP_OVER_MY_CODE, \
17
- CMD_STEP_RETURN, CMD_STEP_CAUGHT_EXCEPTION, CMD_ADD_EXCEPTION_BREAK, CMD_SET_BREAK, \
18
- CMD_SET_NEXT_STATEMENT, CMD_THREAD_SUSPEND_SINGLE_NOTIFICATION, \
19
- CMD_THREAD_RESUME_SINGLE_NOTIFICATION, CMD_THREAD_KILL, CMD_STOP_ON_START, CMD_INPUT_REQUESTED, \
20
- CMD_EXIT, CMD_STEP_INTO_COROUTINE, CMD_STEP_RETURN_MY_CODE, CMD_SMART_STEP_INTO, \
21
- CMD_SET_FUNCTION_BREAK
11
+ from _pydevd_bundle._debug_adapter.pydevd_schema import (
12
+ ModuleEvent,
13
+ ModuleEventBody,
14
+ Module,
15
+ OutputEventBody,
16
+ OutputEvent,
17
+ ContinuedEventBody,
18
+ ExitedEventBody,
19
+ ExitedEvent,
20
+ )
21
+ from _pydevd_bundle.pydevd_comm_constants import (
22
+ CMD_THREAD_CREATE,
23
+ CMD_RETURN,
24
+ CMD_MODULE_EVENT,
25
+ CMD_WRITE_TO_CONSOLE,
26
+ CMD_STEP_INTO,
27
+ CMD_STEP_INTO_MY_CODE,
28
+ CMD_STEP_OVER,
29
+ CMD_STEP_OVER_MY_CODE,
30
+ CMD_STEP_RETURN,
31
+ CMD_STEP_CAUGHT_EXCEPTION,
32
+ CMD_ADD_EXCEPTION_BREAK,
33
+ CMD_SET_BREAK,
34
+ CMD_SET_NEXT_STATEMENT,
35
+ CMD_THREAD_SUSPEND_SINGLE_NOTIFICATION,
36
+ CMD_THREAD_RESUME_SINGLE_NOTIFICATION,
37
+ CMD_THREAD_KILL,
38
+ CMD_STOP_ON_START,
39
+ CMD_INPUT_REQUESTED,
40
+ CMD_EXIT,
41
+ CMD_STEP_INTO_COROUTINE,
42
+ CMD_STEP_RETURN_MY_CODE,
43
+ CMD_SMART_STEP_INTO,
44
+ CMD_SET_FUNCTION_BREAK,
45
+ CMD_THREAD_RUN,
46
+ )
22
47
  from _pydevd_bundle.pydevd_constants import get_thread_id, ForkSafeLock, DebugInfoHolder
23
48
  from _pydevd_bundle.pydevd_net_command import NetCommand, NULL_NET_COMMAND
24
49
  from _pydevd_bundle.pydevd_net_command_factory_xml import NetCommandFactory
@@ -33,17 +58,16 @@ from _pydev_bundle import pydev_log
33
58
 
34
59
 
35
60
  class ModulesManager(object):
36
-
37
61
  def __init__(self):
38
62
  self._lock = ForkSafeLock()
39
63
  self._modules = {}
40
64
  self._next_id = partial(next, itertools.count(0))
41
65
 
42
66
  def track_module(self, filename_in_utf8, module_name, frame):
43
- '''
67
+ """
44
68
  :return list(NetCommand):
45
69
  Returns a list with the module events to be sent.
46
- '''
70
+ """
47
71
  if filename_in_utf8 in self._modules:
48
72
  return []
49
73
 
@@ -54,14 +78,14 @@ class ModulesManager(object):
54
78
  return
55
79
 
56
80
  try:
57
- version = str(frame.f_globals.get('__version__', ''))
81
+ version = str(frame.f_globals.get("__version__", ""))
58
82
  except:
59
- version = '<unknown>'
83
+ version = "<unknown>"
60
84
 
61
85
  try:
62
- package_name = str(frame.f_globals.get('__package__', ''))
86
+ package_name = str(frame.f_globals.get("__package__", ""))
63
87
  except:
64
- package_name = '<unknown>'
88
+ package_name = "<unknown>"
65
89
 
66
90
  module_id = self._next_id()
67
91
 
@@ -71,9 +95,9 @@ class ModulesManager(object):
71
95
 
72
96
  if package_name:
73
97
  # Note: package doesn't appear in the docs but seems to be expected?
74
- module.kwargs['package'] = package_name
98
+ module.kwargs["package"] = package_name
75
99
 
76
- module_event = ModuleEvent(ModuleEventBody('new', module))
100
+ module_event = ModuleEvent(ModuleEventBody("new", module))
77
101
 
78
102
  module_events.append(NetCommand(CMD_MODULE_EVENT, 0, module_event, is_json=True))
79
103
 
@@ -81,15 +105,15 @@ class ModulesManager(object):
81
105
  return module_events
82
106
 
83
107
  def get_modules_info(self):
84
- '''
108
+ """
85
109
  :return list(Module)
86
- '''
110
+ """
87
111
  with self._lock:
88
112
  return list(self._modules.values())
89
113
 
90
114
 
91
115
  class NetCommandFactoryJson(NetCommandFactory):
92
- '''
116
+ """
93
117
  Factory for commands which will provide messages as json (they should be
94
118
  similar to the debug adapter where possible, although some differences
95
119
  are currently Ok).
@@ -98,7 +122,7 @@ class NetCommandFactoryJson(NetCommandFactory):
98
122
  can be done one at a time (any message not overridden will currently
99
123
  use the xml version) -- after having all messages handled, it should
100
124
  no longer use NetCommandFactory as the base class.
101
- '''
125
+ """
102
126
 
103
127
  def __init__(self):
104
128
  NetCommandFactory.__init__(self)
@@ -114,11 +138,10 @@ class NetCommandFactoryJson(NetCommandFactory):
114
138
 
115
139
  @overrides(NetCommandFactory.make_thread_created_message)
116
140
  def make_thread_created_message(self, thread):
117
-
118
141
  # Note: the thread id for the debug adapter must be an int
119
142
  # (make the actual id from get_thread_id respect that later on).
120
143
  msg = pydevd_schema.ThreadEvent(
121
- pydevd_schema.ThreadEventBody('started', get_thread_id(thread)),
144
+ pydevd_schema.ThreadEventBody("started", get_thread_id(thread)),
122
145
  )
123
146
 
124
147
  return NetCommand(CMD_THREAD_CREATE, 0, msg, is_json=True)
@@ -127,7 +150,7 @@ class NetCommandFactoryJson(NetCommandFactory):
127
150
  def make_custom_frame_created_message(self, frame_id, frame_description):
128
151
  self._additional_thread_id_to_thread_name[frame_id] = frame_description
129
152
  msg = pydevd_schema.ThreadEvent(
130
- pydevd_schema.ThreadEventBody('started', frame_id),
153
+ pydevd_schema.ThreadEventBody("started", frame_id),
131
154
  )
132
155
 
133
156
  return NetCommand(CMD_THREAD_CREATE, 0, msg, is_json=True)
@@ -136,7 +159,7 @@ class NetCommandFactoryJson(NetCommandFactory):
136
159
  def make_thread_killed_message(self, tid):
137
160
  self._additional_thread_id_to_thread_name.pop(tid, None)
138
161
  msg = pydevd_schema.ThreadEvent(
139
- pydevd_schema.ThreadEventBody('exited', tid),
162
+ pydevd_schema.ThreadEventBody("exited", tid),
140
163
  )
141
164
 
142
165
  return NetCommand(CMD_THREAD_KILL, 0, msg, is_json=True)
@@ -159,8 +182,7 @@ class NetCommandFactoryJson(NetCommandFactory):
159
182
  threads.append(thread_schema.to_dict())
160
183
 
161
184
  body = pydevd_schema.ThreadsResponseBody(threads)
162
- response = pydevd_schema.ThreadsResponse(
163
- request_seq=seq, success=True, command='threads', body=body)
185
+ response = pydevd_schema.ThreadsResponse(request_seq=seq, success=True, command="threads", body=body)
164
186
 
165
187
  return NetCommand(CMD_RETURN, 0, response, is_json=True)
166
188
 
@@ -182,34 +204,34 @@ class NetCommandFactoryJson(NetCommandFactory):
182
204
  label = completion[0]
183
205
  if label.lower().startswith(qualifier):
184
206
  completion = pydevd_schema.CompletionItem(
185
- label=label, type=COMPLETION_TYPE_LOOK_UP[completion[3]], start=start, length=qualifier_len)
207
+ label=label, type=COMPLETION_TYPE_LOOK_UP[completion[3]], start=start, length=qualifier_len
208
+ )
186
209
  targets.append(completion.to_dict())
187
210
 
188
211
  body = pydevd_schema.CompletionsResponseBody(targets)
189
- response = pydevd_schema.CompletionsResponse(
190
- request_seq=seq, success=True, command='completions', body=body)
212
+ response = pydevd_schema.CompletionsResponse(request_seq=seq, success=True, command="completions", body=body)
191
213
  return NetCommand(CMD_RETURN, 0, response, is_json=True)
192
214
 
193
215
  def _format_frame_name(self, fmt, initial_name, module_name, line, path):
194
216
  if fmt is None:
195
217
  return initial_name
196
218
  frame_name = initial_name
197
- if fmt.get('module', False):
219
+ if fmt.get("module", False):
198
220
  if module_name:
199
- if initial_name == '<module>':
221
+ if initial_name == "<module>":
200
222
  frame_name = module_name
201
223
  else:
202
- frame_name = '%s.%s' % (module_name, initial_name)
224
+ frame_name = "%s.%s" % (module_name, initial_name)
203
225
  else:
204
226
  basename = os.path.basename(path)
205
- basename = basename[0:-3] if basename.lower().endswith('.py') else basename
206
- if initial_name == '<module>':
207
- frame_name = '%s in %s' % (initial_name, basename)
227
+ basename = basename[0:-3] if basename.lower().endswith(".py") else basename
228
+ if initial_name == "<module>":
229
+ frame_name = "%s in %s" % (initial_name, basename)
208
230
  else:
209
- frame_name = '%s.%s' % (basename, initial_name)
231
+ frame_name = "%s.%s" % (basename, initial_name)
210
232
 
211
- if fmt.get('line', False):
212
- frame_name = '%s : %d' % (frame_name, line)
233
+ if fmt.get("line", False):
234
+ frame_name = "%s : %d" % (frame_name, line)
213
235
 
214
236
  return frame_name
215
237
 
@@ -229,32 +251,39 @@ class NetCommandFactoryJson(NetCommandFactory):
229
251
  else:
230
252
  frames_list = pydevd_frame_utils.create_frames_list_from_frame(topmost_frame)
231
253
 
232
- for frame_id, frame, method_name, original_filename, filename_in_utf8, lineno, applied_mapping, show_as_current_frame, line_col_info in self._iter_visible_frames_info(
233
- py_db, frames_list, flatten_chained=True
234
- ):
235
-
254
+ for (
255
+ frame_id,
256
+ frame,
257
+ method_name,
258
+ original_filename,
259
+ filename_in_utf8,
260
+ lineno,
261
+ applied_mapping,
262
+ show_as_current_frame,
263
+ line_col_info,
264
+ ) in self._iter_visible_frames_info(py_db, frames_list, flatten_chained=True):
236
265
  try:
237
- module_name = str(frame.f_globals.get('__name__', ''))
266
+ module_name = str(frame.f_globals.get("__name__", ""))
238
267
  except:
239
- module_name = '<unknown>'
268
+ module_name = "<unknown>"
240
269
 
241
270
  module_events.extend(self.modules_manager.track_module(filename_in_utf8, module_name, frame))
242
271
 
243
272
  presentation_hint = None
244
- if not getattr(frame, 'IS_PLUGIN_FRAME', False): # Never filter out plugin frames!
273
+ if not getattr(frame, "IS_PLUGIN_FRAME", False): # Never filter out plugin frames!
245
274
  if py_db.is_files_filter_enabled and py_db.apply_files_filter(frame, original_filename, False):
246
275
  continue
247
276
 
248
277
  if not py_db.in_project_scope(frame):
249
- presentation_hint = 'subtle'
278
+ presentation_hint = "subtle"
250
279
 
251
280
  formatted_name = self._format_frame_name(fmt, method_name, module_name, lineno, filename_in_utf8)
252
281
  if show_as_current_frame:
253
- formatted_name += ' (Current frame)'
282
+ formatted_name += " (Current frame)"
254
283
  source_reference = pydevd_file_utils.get_client_filename_source_reference(filename_in_utf8)
255
284
 
256
285
  if not source_reference and not applied_mapping and not os.path.exists(original_filename):
257
- if getattr(frame.f_code, 'co_lines', None) or getattr(frame.f_code, 'co_lnotab', None):
286
+ if getattr(frame.f_code, "co_lines", None) or getattr(frame.f_code, "co_lnotab", None):
258
287
  # Create a source-reference to be used where we provide the source by decompiling the code.
259
288
  # Note: When the time comes to retrieve the source reference in this case, we'll
260
289
  # check the linecache first (see: get_decompiled_source_from_frame_id).
@@ -262,8 +291,7 @@ class NetCommandFactoryJson(NetCommandFactory):
262
291
  else:
263
292
  # Check if someone added a source reference to the linecache (Python attrs does this).
264
293
  if linecache.getline(original_filename, 1):
265
- source_reference = pydevd_file_utils.create_source_reference_for_linecache(
266
- original_filename)
294
+ source_reference = pydevd_file_utils.create_source_reference_for_linecache(original_filename)
267
295
 
268
296
  column = 1
269
297
  endcol = None
@@ -272,7 +300,7 @@ class NetCommandFactoryJson(NetCommandFactory):
272
300
  line_text = linecache.getline(original_filename, lineno)
273
301
  except:
274
302
  if DebugInfoHolder.DEBUG_TRACE_LEVEL >= 2:
275
- pydev_log.exception('Unable to get line from linecache for file: %s', original_filename)
303
+ pydev_log.exception("Unable to get line from linecache for file: %s", original_filename)
276
304
  else:
277
305
  if line_text:
278
306
  colno, endcolno = line_col_info.map_columns_to_line(line_text)
@@ -280,12 +308,20 @@ class NetCommandFactoryJson(NetCommandFactory):
280
308
  if line_col_info.lineno == line_col_info.end_lineno:
281
309
  endcol = endcolno + 1
282
310
 
283
- frames.append(pydevd_schema.StackFrame(
284
- frame_id, formatted_name, lineno, column=column, endColumn=endcol, source={
285
- 'path': filename_in_utf8,
286
- 'sourceReference': source_reference,
287
- },
288
- presentationHint=presentation_hint).to_dict())
311
+ frames.append(
312
+ pydevd_schema.StackFrame(
313
+ frame_id,
314
+ formatted_name,
315
+ lineno,
316
+ column=column,
317
+ endColumn=endcol,
318
+ source={
319
+ "path": filename_in_utf8,
320
+ "sourceReference": source_reference,
321
+ },
322
+ presentationHint=presentation_hint,
323
+ ).to_dict()
324
+ )
289
325
  finally:
290
326
  topmost_frame = None
291
327
 
@@ -302,47 +338,52 @@ class NetCommandFactoryJson(NetCommandFactory):
302
338
  response = pydevd_schema.StackTraceResponse(
303
339
  request_seq=seq,
304
340
  success=True,
305
- command='stackTrace',
306
- body=pydevd_schema.StackTraceResponseBody(stackFrames=stack_frames, totalFrames=total_frames))
341
+ command="stackTrace",
342
+ body=pydevd_schema.StackTraceResponseBody(stackFrames=stack_frames, totalFrames=total_frames),
343
+ )
307
344
  return NetCommand(CMD_RETURN, 0, response, is_json=True)
308
345
 
309
346
  @overrides(NetCommandFactory.make_warning_message)
310
347
  def make_warning_message(self, msg):
311
- category = 'important'
348
+ category = "important"
312
349
  body = OutputEventBody(msg, category)
313
350
  event = OutputEvent(body)
314
351
  return NetCommand(CMD_WRITE_TO_CONSOLE, 0, event, is_json=True)
315
352
 
316
353
  @overrides(NetCommandFactory.make_io_message)
317
354
  def make_io_message(self, msg, ctx):
318
- category = 'stdout' if int(ctx) == 1 else 'stderr'
355
+ category = "stdout" if int(ctx) == 1 else "stderr"
319
356
  body = OutputEventBody(msg, category)
320
357
  event = OutputEvent(body)
321
358
  return NetCommand(CMD_WRITE_TO_CONSOLE, 0, event, is_json=True)
322
359
 
323
360
  @overrides(NetCommandFactory.make_console_message)
324
361
  def make_console_message(self, msg):
325
- category = 'console'
362
+ category = "console"
326
363
  body = OutputEventBody(msg, category)
327
364
  event = OutputEvent(body)
328
365
  return NetCommand(CMD_WRITE_TO_CONSOLE, 0, event, is_json=True)
329
366
 
330
- _STEP_REASONS = set([
331
- CMD_STEP_INTO,
332
- CMD_STEP_INTO_MY_CODE,
333
- CMD_STEP_OVER,
334
- CMD_STEP_OVER_MY_CODE,
335
- CMD_STEP_RETURN,
336
- CMD_STEP_RETURN_MY_CODE,
337
- CMD_STEP_INTO_MY_CODE,
338
- CMD_STOP_ON_START,
339
- CMD_STEP_INTO_COROUTINE,
340
- CMD_SMART_STEP_INTO,
341
- ])
342
- _EXCEPTION_REASONS = set([
343
- CMD_STEP_CAUGHT_EXCEPTION,
344
- CMD_ADD_EXCEPTION_BREAK,
345
- ])
367
+ _STEP_REASONS = set(
368
+ [
369
+ CMD_STEP_INTO,
370
+ CMD_STEP_INTO_MY_CODE,
371
+ CMD_STEP_OVER,
372
+ CMD_STEP_OVER_MY_CODE,
373
+ CMD_STEP_RETURN,
374
+ CMD_STEP_RETURN_MY_CODE,
375
+ CMD_STEP_INTO_MY_CODE,
376
+ CMD_STOP_ON_START,
377
+ CMD_STEP_INTO_COROUTINE,
378
+ CMD_SMART_STEP_INTO,
379
+ ]
380
+ )
381
+ _EXCEPTION_REASONS = set(
382
+ [
383
+ CMD_STEP_CAUGHT_EXCEPTION,
384
+ CMD_ADD_EXCEPTION_BREAK,
385
+ ]
386
+ )
346
387
 
347
388
  @overrides(NetCommandFactory.make_thread_suspend_single_notification)
348
389
  def make_thread_suspend_single_notification(self, py_db, thread_id, thread, stop_reason):
@@ -353,27 +394,27 @@ class NetCommandFactoryJson(NetCommandFactory):
353
394
  preserve_focus_hint = False
354
395
  if stop_reason in self._STEP_REASONS:
355
396
  if info.pydev_original_step_cmd == CMD_STOP_ON_START:
356
-
357
397
  # Just to make sure that's not set as the original reason anymore.
358
398
  info.pydev_original_step_cmd = -1
359
- stop_reason = 'entry'
399
+ stop_reason = "entry"
360
400
  else:
361
- stop_reason = 'step'
401
+ stop_reason = "step"
362
402
  elif stop_reason in self._EXCEPTION_REASONS:
363
- stop_reason = 'exception'
403
+ stop_reason = "exception"
364
404
  elif stop_reason == CMD_SET_BREAK:
365
- stop_reason = 'breakpoint'
405
+ stop_reason = "breakpoint"
366
406
  elif stop_reason == CMD_SET_FUNCTION_BREAK:
367
- stop_reason = 'function breakpoint'
407
+ stop_reason = "function breakpoint"
368
408
  elif stop_reason == CMD_SET_NEXT_STATEMENT:
369
- stop_reason = 'goto'
409
+ stop_reason = "goto"
370
410
  else:
371
- stop_reason = 'pause'
411
+ stop_reason = "pause"
372
412
  preserve_focus_hint = True
373
413
 
374
- if stop_reason == 'exception':
414
+ if stop_reason == "exception":
375
415
  exception_info_response = build_exception_info_response(
376
- py_db, thread_id, thread, -1, set_additional_thread_info, self._iter_visible_frames_info, max_frames=-1)
416
+ py_db, thread_id, thread, -1, set_additional_thread_info, self._iter_visible_frames_info, max_frames=-1
417
+ )
377
418
  exception_info_response
378
419
 
379
420
  exc_name = exception_info_response.body.exceptionId
@@ -399,11 +440,8 @@ class NetCommandFactoryJson(NetCommandFactory):
399
440
  @overrides(NetCommandFactory.make_set_next_stmnt_status_message)
400
441
  def make_set_next_stmnt_status_message(self, seq, is_success, exception_msg):
401
442
  response = pydevd_schema.GotoResponse(
402
- request_seq=int(seq),
403
- success=is_success,
404
- command='goto',
405
- body={},
406
- message=(None if is_success else exception_msg))
443
+ request_seq=int(seq), success=is_success, command="goto", body={}, message=(None if is_success else exception_msg)
444
+ )
407
445
  return NetCommand(CMD_RETURN, 0, response, is_json=True)
408
446
 
409
447
  @overrides(NetCommandFactory.make_send_curr_exception_trace_message)
@@ -435,12 +473,63 @@ class NetCommandFactoryJson(NetCommandFactory):
435
473
  return cmd
436
474
 
437
475
  @overrides(NetCommandFactory.make_thread_suspend_message)
438
- def make_thread_suspend_message(self, *args, **kwargs):
439
- return NULL_NET_COMMAND # Not a part of the debug adapter protocol
476
+ def make_thread_suspend_message(self, py_db, thread_id, frames_list, stop_reason, message, trace_suspend_type, thread, info):
477
+ from _pydevd_bundle.pydevd_comm_constants import CMD_THREAD_SUSPEND
478
+
479
+ if py_db.multi_threads_single_notification:
480
+ pydev_log.debug("Skipping per-thread thread suspend notification.")
481
+ return NULL_NET_COMMAND # Don't send per-thread, send a single one.
482
+ pydev_log.debug("Sending per-thread thread suspend notification (stop_reason: %s)", stop_reason)
483
+
484
+ exc_desc = None
485
+ exc_name = None
486
+ preserve_focus_hint = False
487
+ if stop_reason in self._STEP_REASONS:
488
+ if info.pydev_original_step_cmd == CMD_STOP_ON_START:
489
+ # Just to make sure that's not set as the original reason anymore.
490
+ info.pydev_original_step_cmd = -1
491
+ stop_reason = "entry"
492
+ else:
493
+ stop_reason = "step"
494
+ elif stop_reason in self._EXCEPTION_REASONS:
495
+ stop_reason = "exception"
496
+ elif stop_reason == CMD_SET_BREAK:
497
+ stop_reason = "breakpoint"
498
+ elif stop_reason == CMD_SET_FUNCTION_BREAK:
499
+ stop_reason = "function breakpoint"
500
+ elif stop_reason == CMD_SET_NEXT_STATEMENT:
501
+ stop_reason = "goto"
502
+ else:
503
+ stop_reason = "pause"
504
+ preserve_focus_hint = True
505
+
506
+ if stop_reason == "exception":
507
+ exception_info_response = build_exception_info_response(
508
+ py_db, thread_id, thread, -1, set_additional_thread_info, self._iter_visible_frames_info, max_frames=-1
509
+ )
510
+ exception_info_response
511
+
512
+ exc_name = exception_info_response.body.exceptionId
513
+ exc_desc = exception_info_response.body.description
514
+
515
+ body = pydevd_schema.StoppedEventBody(
516
+ reason=stop_reason,
517
+ description=exc_desc,
518
+ threadId=thread_id,
519
+ text=exc_name,
520
+ allThreadsStopped=False,
521
+ preserveFocusHint=preserve_focus_hint,
522
+ )
523
+ event = pydevd_schema.StoppedEvent(body)
524
+ return NetCommand(CMD_THREAD_SUSPEND, 0, event, is_json=True)
440
525
 
441
526
  @overrides(NetCommandFactory.make_thread_run_message)
442
- def make_thread_run_message(self, *args, **kwargs):
443
- return NULL_NET_COMMAND # Not a part of the debug adapter protocol
527
+ def make_thread_run_message(self, py_db, thread_id, reason):
528
+ if py_db.multi_threads_single_notification:
529
+ return NULL_NET_COMMAND # Don't send per-thread, send a single one.
530
+ body = ContinuedEventBody(threadId=thread_id, allThreadsContinued=False)
531
+ event = pydevd_schema.ContinuedEvent(body)
532
+ return NetCommand(CMD_THREAD_RUN, 0, event, is_json=True)
444
533
 
445
534
  @overrides(NetCommandFactory.make_reloaded_code_message)
446
535
  def make_reloaded_code_message(self, *args, **kwargs):
@@ -453,15 +542,17 @@ class NetCommandFactoryJson(NetCommandFactory):
453
542
 
454
543
  @overrides(NetCommandFactory.make_skipped_step_in_because_of_filters)
455
544
  def make_skipped_step_in_because_of_filters(self, py_db, frame):
456
- msg = 'Frame skipped from debugging during step-in.'
545
+ msg = "Frame skipped from debugging during step-in."
457
546
  if py_db.get_use_libraries_filter():
458
- msg += ('\nNote: may have been skipped because of "justMyCode" option (default == true). '
459
- 'Try setting \"justMyCode\": false in the debug configuration (e.g., launch.json).\n')
547
+ msg += (
548
+ '\nNote: may have been skipped because of "justMyCode" option (default == true). '
549
+ 'Try setting "justMyCode": false in the debug configuration (e.g., launch.json).\n'
550
+ )
460
551
  return self.make_warning_message(msg)
461
552
 
462
553
  @overrides(NetCommandFactory.make_evaluation_timeout_msg)
463
554
  def make_evaluation_timeout_msg(self, py_db, expression, curr_thread):
464
- msg = '''Evaluating: %s did not finish after %.2f seconds.
555
+ msg = """Evaluating: %s did not finish after %.2f seconds.
465
556
  This may mean a number of things:
466
557
  - This evaluation is really slow and this is expected.
467
558
  In this case it's possible to silence this error by raising the timeout, setting the
@@ -481,12 +572,12 @@ This may mean a number of things:
481
572
  environment variable to true so that a thread dump is shown along with this message and
482
573
  optionally, set the PYDEVD_INTERRUPT_THREAD_TIMEOUT to some value so that the debugger
483
574
  tries to interrupt the evaluation (if possible) when this happens.
484
- ''' % (expression, pydevd_constants.PYDEVD_WARN_EVALUATION_TIMEOUT)
575
+ """ % (expression, pydevd_constants.PYDEVD_WARN_EVALUATION_TIMEOUT)
485
576
 
486
577
  if pydevd_constants.PYDEVD_THREAD_DUMP_ON_WARN_EVALUATION_TIMEOUT:
487
578
  stream = StringIO()
488
579
  pydevd_utils.dump_threads(stream, show_pydevd_threads=False)
489
- msg += '\n\n%s\n' % stream.getvalue()
580
+ msg += "\n\n%s\n" % stream.getvalue()
490
581
  return self.make_warning_message(msg)
491
582
 
492
583
  @overrides(NetCommandFactory.make_exit_command)