Created
September 18, 2023 15:29
-
-
Save airportyh/55908f97c10344afe6e92c8c6304695b to your computer and use it in GitHub Desktop.
pydebug test errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I+00000.340: Injector[PID=525152] output: Target 'None' cannot support this command. | |
I+00000.340: Injector[PID=525152] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.340: Injector[PID=525152] output: No symbol table is loaded. Use the "file" command. | |
I+00000.340: Injector[PID=525152] output: No symbol table is loaded. Use the "file" command. | |
I+00000.347: Injector[PID=525152] output: E+00000.116: Code injection into PID=525152 failed: | |
I+00000.347: Injector[PID=525152] output: | |
I+00000.347: Injector[PID=525152] output: Traceback (most recent call last): | |
I+00000.347: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.347: Injector[PID=525152] output: add_code_to_python_process.run_python_code( | |
I+00000.347: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.347: Injector[PID=525152] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.347: Injector[PID=525152] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.347: Injector[PID=525152] output: raise CalledProcessError(retcode, cmd) | |
I+00000.349: Injector[PID=525152] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.349: Injector[PID=525152] output: | |
I+00000.349: Injector[PID=525152] output: Stack where logged: | |
I+00000.349: Injector[PID=525152] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.349: Injector[PID=525152] output: return _run_code(code, main_globals, None, | |
I+00000.349: Injector[PID=525152] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.349: Injector[PID=525152] output: exec(code, run_globals) | |
I+00000.349: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.349: Injector[PID=525152] output: cli.main() | |
I+00000.349: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.349: Injector[PID=525152] output: run() | |
I+00000.349: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.349: Injector[PID=525152] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.350: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.350: Injector[PID=525152] output: _exception(format_string, *args, **kwargs) | |
I+00000.350: Injector[PID=525152] output: | |
I+00000.350: Injector[PID=525152] output: | |
I+00000.350: Injector[PID=525152] output: Traceback (most recent call last): | |
I+00000.350: Injector[PID=525152] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.350: Injector[PID=525152] output: return _run_code(code, main_globals, None, | |
I+00000.350: Injector[PID=525152] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.350: Injector[PID=525152] output: exec(code, run_globals) | |
I+00000.350: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.350: Injector[PID=525152] output: cli.main() | |
I+00000.350: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.350: Injector[PID=525152] output: run() | |
I+00000.350: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.350: Injector[PID=525152] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.351: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.351: Injector[PID=525152] output: add_code_to_python_process.run_python_code( | |
I+00000.351: Injector[PID=525152] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.351: Injector[PID=525152] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.351: Injector[PID=525152] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.351: Injector[PID=525152] output: raise CalledProcessError(retcode, cmd) | |
I+00000.352: Injector[PID=525152] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.376: Injector[PID=525152] exited. | |
D+00001.067: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.067: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 525152 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.116: Code injection into PID=525152 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.081: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.082: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.082: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.525184.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.03s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-525184.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.051: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.051: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:37791', '--adapter-access-token', '7bb8f36e4149dd24402ef04b99575ffed6e4e4aff2f9d99c3c5305c3f1f9828f', '--pid', '525152'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.051: Attaching to process with PID=525152 | |
I+00000.051: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.052: Injecting code into process with PID=525152 ... | |
E+00000.116: Code injection into PID=525152 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 525152 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 55, 55, 57, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 55, 98, 98, 56, 102, 51, 54, 101, 52, 49, 52, 57, 100, 100, 50, 52, 52, 48, 50, 101, 102, 48, 52, 98, 57, 57, 53, 55, 53, 102, 102, 101, 100, 54, 101, 52, 101, 52, 97, 102, 102, 50, 102, 57, 100, 57, 57, 99, 51, 99, 53, 51, 48, 53, 99, 51, 102, 49, 102, 57, 56, 50, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.117: Not logging to "<stderr>" anymore. | |
I+15.365: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[-program-attach_pid]/tests-484871.log" anymore. | |
_________________________________________________ test_frame_eval[yes-code-attach_pid] __________________________________________________ | |
[gw0] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7f224c181000>, target = <class 'tests.debug.targets.Code'>, run = attach_pid | |
frame_eval = 'yes' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7f2247e12b00> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.143: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/tests-484850.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] started. | |
I+00.030: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.031: Starting Session[1] | |
I+00.032: Listening for incoming connection from BackChannel[1] on port 49625... | |
I+00.032: Attaching Session[1] to code: [ | |
"import debuggee", | |
"from debuggee import backchannel", | |
"", | |
"debuggee.setup()", | |
"", | |
"from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL", | |
"", | |
"backchannel.send(USING_FRAME_EVAL)", | |
"" | |
] by PID. | |
I+00.032: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/Session[1]" | |
I+00.033: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"-c", | |
"import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw0", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] (call)", | |
"PYDEVD_USE_FRAME_EVAL": "yes", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "49625", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw0/test_frame_eval_yes_code_attac4/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.033: Spawned Debuggee[1] with PID=526092 | |
D+00.033: watchdog-484850 <-- ['register_spawn', 526092, 'Debuggee[1]'] | |
D+00.034: watchdog-484850 --> ['ok'] | |
I+00.034: Capturing Debuggee[1] stdout | |
I+00.034: Capturing Debuggee[1] stderr | |
I+00.034: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw0", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "49625" | |
} | |
I+00.035: Spawned Adapter[1] with PID=526096 | |
D+00.035: watchdog-484850 <-- ['register_spawn', 526096, 'Adapter[1]'] | |
D+00.035: watchdog-484850 --> ['ok'] | |
D+00.035: Starting message loop for channel Adapter[1] | |
I+00.035: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.066: Incoming connection from BackChannel[1] accepted. | |
D+00.187: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.187: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.188: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.188: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.189: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.189: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.190: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.190: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"code": "import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n", | |
"args": [], | |
"processId": 526092, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.190: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.191: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 50327 | |
} | |
} | |
D+01.193: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.193: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526092 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.105: Code injection into PID=526092 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.210: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.215: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.215: Ending Session[1]. | |
E+15.216: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.216: Killing Adapter[1]. | |
I+15.217: Killing Debuggee[1]. | |
D+15.217: Closing Adapter[1] message stream | |
D+15.220: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.221: Waiting for Adapter[1] to close listener ports ... | |
I+15.221: Waiting for Adapter[1] with PID=526096 to exit. | |
D+15.222: watchdog-484850 <-- ['unregister_spawn', 526096, 'Adapter[1]'] | |
D+15.222: watchdog-484850 --> ['ok'] | |
D+15.222: Closing BackChannel[1] client socket... | |
D+15.222: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.321: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] passed. | |
E+15.322: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] failed. | |
I+15.322: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-526096.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.005: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.051: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.051: Listening for incoming Client connections on 127.0.0.1:40511... | |
I+00000.051: Connecting to client over stdio... | |
D+00000.052: Starting message loop for channel Client[1] | |
D+00000.052: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.052: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.054: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.054: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.054: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.055: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.056: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"code": "import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n", | |
"args": [], | |
"processId": 526092, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.056: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:50327... | |
I+00000.056: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:50327', '--adapter-access-token', 'ba71414889ea994f41f571454db7151a9b1c7ee5358e0d118900351be10d8c8f', '--pid', '526092'] | |
D+00000.057: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 50327 | |
} | |
} | |
I+00000.057: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.231: Injector[PID=526092] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.232: Injector[PID=526092] output: Running: gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.278: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.278: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.278: Injector[PID=526092] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.278: Injector[PID=526092] output: | |
I+00000.278: Injector[PID=526092] output: During handling of the above exception, another exception occurred: | |
I+00000.278: Injector[PID=526092] output: | |
I+00000.279: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.279: Injector[PID=526092] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.279: Injector[PID=526092] output: __import__(modname) | |
I+00000.279: Injector[PID=526092] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.279: Injector[PID=526092] output: import copy | |
I+00000.279: Injector[PID=526092] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.279: Injector[PID=526092] output: from org.python.core import PyStringMap | |
I+00000.279: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.279: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.279: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.279: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.279: Injector[PID=526092] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.279: Injector[PID=526092] output: | |
I+00000.279: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.279: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.279: Injector[PID=526092] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.279: Injector[PID=526092] output: | |
I+00000.279: Injector[PID=526092] output: During handling of the above exception, another exception occurred: | |
I+00000.279: Injector[PID=526092] output: | |
I+00000.280: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.280: Injector[PID=526092] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.280: Injector[PID=526092] output: __import__(modname) | |
I+00000.280: Injector[PID=526092] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.280: Injector[PID=526092] output: import copy | |
I+00000.280: Injector[PID=526092] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.280: Injector[PID=526092] output: from org.python.core import PyStringMap | |
I+00000.280: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.280: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.280: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.280: Injector[PID=526092] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.280: Injector[PID=526092] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.280: Injector[PID=526092] output: | |
I+00000.284: Injector[PID=526092] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.284: Injector[PID=526092] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.284: Injector[PID=526092] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.284: Injector[PID=526092] output: ptrace: Inappropriate ioctl for device. | |
I+00000.284: Injector[PID=526092] output: Target 'None' cannot support this command. | |
I+00000.284: Injector[PID=526092] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.284: Injector[PID=526092] output: No symbol table is loaded. Use the "file" command. | |
I+00000.284: Injector[PID=526092] output: No symbol table is loaded. Use the "file" command. | |
I+00000.291: Injector[PID=526092] output: E+00000.105: Code injection into PID=526092 failed: | |
I+00000.291: Injector[PID=526092] output: | |
I+00000.291: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.291: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.291: Injector[PID=526092] output: add_code_to_python_process.run_python_code( | |
I+00000.291: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.291: Injector[PID=526092] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.292: Injector[PID=526092] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.292: Injector[PID=526092] output: raise CalledProcessError(retcode, cmd) | |
I+00000.293: Injector[PID=526092] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.293: Injector[PID=526092] output: | |
I+00000.293: Injector[PID=526092] output: Stack where logged: | |
I+00000.293: Injector[PID=526092] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.293: Injector[PID=526092] output: return _run_code(code, main_globals, None, | |
I+00000.293: Injector[PID=526092] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.293: Injector[PID=526092] output: exec(code, run_globals) | |
I+00000.293: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.293: Injector[PID=526092] output: cli.main() | |
I+00000.293: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.293: Injector[PID=526092] output: run() | |
I+00000.294: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.294: Injector[PID=526092] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.294: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.294: Injector[PID=526092] output: _exception(format_string, *args, **kwargs) | |
I+00000.294: Injector[PID=526092] output: | |
I+00000.294: Injector[PID=526092] output: | |
I+00000.294: Injector[PID=526092] output: Traceback (most recent call last): | |
I+00000.294: Injector[PID=526092] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.294: Injector[PID=526092] output: return _run_code(code, main_globals, None, | |
I+00000.294: Injector[PID=526092] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.294: Injector[PID=526092] output: exec(code, run_globals) | |
I+00000.294: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.294: Injector[PID=526092] output: cli.main() | |
I+00000.294: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.294: Injector[PID=526092] output: run() | |
I+00000.294: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.294: Injector[PID=526092] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.295: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.295: Injector[PID=526092] output: add_code_to_python_process.run_python_code( | |
I+00000.295: Injector[PID=526092] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.295: Injector[PID=526092] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.295: Injector[PID=526092] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.295: Injector[PID=526092] output: raise CalledProcessError(retcode, cmd) | |
I+00000.296: Injector[PID=526092] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.323: Injector[PID=526092] exited. | |
D+00001.058: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.059: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526092 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.105: Code injection into PID=526092 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.073: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.075: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.076: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.526117.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-526117.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.044: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.044: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:50327', '--adapter-access-token', 'ba71414889ea994f41f571454db7151a9b1c7ee5358e0d118900351be10d8c8f', '--pid', '526092'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.044: Attaching to process with PID=526092 | |
I+00000.044: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.044: Injecting code into process with PID=526092 ... | |
E+00000.105: Code injection into PID=526092 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526092 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 48, 51, 50, 55, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 98, 97, 55, 49, 52, 49, 52, 56, 56, 57, 101, 97, 57, 57, 52, 102, 52, 49, 102, 53, 55, 49, 52, 53, 52, 100, 98, 55, 49, 53, 49, 97, 57, 98, 49, 99, 55, 101, 101, 53, 51, 53, 56, 101, 48, 100, 49, 49, 56, 57, 48, 48, 51, 53, 49, 98, 101, 49, 48, 100, 56, 99, 56, 102, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.105: Not logging to "<stderr>" anymore. | |
I+15.322: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-code-attach_pid]/tests-484850.log" anymore. | |
________________________________________________ test_frame_eval[yes-module-attach_pid] _________________________________________________ | |
[gw4] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7fb4ca793640>, target = <class 'tests.debug.targets.Module'>, run = attach_pid | |
frame_eval = 'yes' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7fb4d8c138e0> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.148: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/tests-484867.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] started. | |
I+00.032: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.033: Starting Session[1] | |
I+00.034: Listening for incoming connection from BackChannel[1] on port 57001... | |
I+00.034: Attaching Session[1] to module code_to_debug by PID. | |
I+00.034: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/Session[1]" | |
I+00.035: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"-m", | |
"code_to_debug" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw4", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] (call)", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH:/tmp/pytest-of-toby/pytest-1/popen-gw4/test_frame_eval_yes_module_att4", | |
"PYDEVD_USE_FRAME_EVAL": "yes", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "57001", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw4/test_frame_eval_yes_module_att4/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.035: Spawned Debuggee[1] with PID=526128 | |
D+00.035: watchdog-484867 <-- ['register_spawn', 526128, 'Debuggee[1]'] | |
D+00.035: watchdog-484867 --> ['ok'] | |
I+00.035: Capturing Debuggee[1] stdout | |
I+00.035: Capturing Debuggee[1] stderr | |
I+00.036: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw4", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "57001" | |
} | |
I+00.036: Spawned Adapter[1] with PID=526132 | |
D+00.036: watchdog-484867 <-- ['register_spawn', 526132, 'Adapter[1]'] | |
D+00.037: watchdog-484867 --> ['ok'] | |
D+00.037: Starting message loop for channel Adapter[1] | |
I+00.037: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.068: Incoming connection from BackChannel[1] accepted. | |
D+00.178: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.178: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.180: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.180: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.180: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.181: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.182: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.182: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"module": "code_to_debug", | |
"args": [], | |
"processId": 526128, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.182: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.183: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 46475 | |
} | |
} | |
D+01.184: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.185: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526128 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.098: Code injection into PID=526128 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.199: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.202: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.202: Ending Session[1]. | |
E+15.203: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.203: Killing Adapter[1]. | |
I+15.203: Killing Debuggee[1]. | |
D+15.203: Closing Adapter[1] message stream | |
D+15.205: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.205: Waiting for Adapter[1] to close listener ports ... | |
I+15.206: Waiting for Adapter[1] with PID=526132 to exit. | |
D+15.206: watchdog-484867 <-- ['unregister_spawn', 526132, 'Adapter[1]'] | |
D+15.206: watchdog-484867 --> ['ok'] | |
D+15.206: Closing BackChannel[1] client socket... | |
D+15.206: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.284: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] passed. | |
E+15.284: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] failed. | |
I+15.285: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-526132.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.006: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.056: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.056: Listening for incoming Client connections on 127.0.0.1:33075... | |
I+00000.057: Connecting to client over stdio... | |
D+00000.057: Starting message loop for channel Client[1] | |
D+00000.057: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.057: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.060: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.060: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.060: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.060: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.061: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"module": "code_to_debug", | |
"args": [], | |
"processId": 526128, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.062: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:46475... | |
I+00000.062: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:46475', '--adapter-access-token', 'dd9637966b2bfd1e0cc874f4d747eeb285e008c4f4e58e7ffa1605e860a31252', '--pid', '526128'] | |
D+00000.063: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 46475 | |
} | |
} | |
I+00000.063: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.237: Injector[PID=526128] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.238: Injector[PID=526128] output: Running: gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.279: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.279: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.279: Injector[PID=526128] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.279: Injector[PID=526128] output: | |
I+00000.279: Injector[PID=526128] output: During handling of the above exception, another exception occurred: | |
I+00000.279: Injector[PID=526128] output: | |
I+00000.280: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.280: Injector[PID=526128] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.280: Injector[PID=526128] output: __import__(modname) | |
I+00000.280: Injector[PID=526128] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.280: Injector[PID=526128] output: import copy | |
I+00000.280: Injector[PID=526128] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.280: Injector[PID=526128] output: from org.python.core import PyStringMap | |
I+00000.280: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.280: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.280: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.280: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.280: Injector[PID=526128] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.280: Injector[PID=526128] output: | |
I+00000.280: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.280: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.280: Injector[PID=526128] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.280: Injector[PID=526128] output: | |
I+00000.280: Injector[PID=526128] output: During handling of the above exception, another exception occurred: | |
I+00000.280: Injector[PID=526128] output: | |
I+00000.280: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.280: Injector[PID=526128] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.280: Injector[PID=526128] output: __import__(modname) | |
I+00000.281: Injector[PID=526128] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.281: Injector[PID=526128] output: import copy | |
I+00000.281: Injector[PID=526128] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.281: Injector[PID=526128] output: from org.python.core import PyStringMap | |
I+00000.281: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.281: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.281: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.281: Injector[PID=526128] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.281: Injector[PID=526128] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.281: Injector[PID=526128] output: | |
I+00000.284: Injector[PID=526128] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.284: Injector[PID=526128] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.284: Injector[PID=526128] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.284: Injector[PID=526128] output: ptrace: Inappropriate ioctl for device. | |
I+00000.284: Injector[PID=526128] output: Target 'None' cannot support this command. | |
I+00000.284: Injector[PID=526128] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.284: Injector[PID=526128] output: No symbol table is loaded. Use the "file" command. | |
I+00000.284: Injector[PID=526128] output: No symbol table is loaded. Use the "file" command. | |
I+00000.291: Injector[PID=526128] output: E+00000.098: Code injection into PID=526128 failed: | |
I+00000.291: Injector[PID=526128] output: | |
I+00000.291: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.291: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.291: Injector[PID=526128] output: add_code_to_python_process.run_python_code( | |
I+00000.291: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.291: Injector[PID=526128] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.291: Injector[PID=526128] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.291: Injector[PID=526128] output: raise CalledProcessError(retcode, cmd) | |
I+00000.292: Injector[PID=526128] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.292: Injector[PID=526128] output: | |
I+00000.292: Injector[PID=526128] output: Stack where logged: | |
I+00000.292: Injector[PID=526128] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.292: Injector[PID=526128] output: return _run_code(code, main_globals, None, | |
I+00000.292: Injector[PID=526128] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.292: Injector[PID=526128] output: exec(code, run_globals) | |
I+00000.292: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.292: Injector[PID=526128] output: cli.main() | |
I+00000.292: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.292: Injector[PID=526128] output: run() | |
I+00000.292: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.292: Injector[PID=526128] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.292: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.292: Injector[PID=526128] output: _exception(format_string, *args, **kwargs) | |
I+00000.293: Injector[PID=526128] output: | |
I+00000.293: Injector[PID=526128] output: | |
I+00000.293: Injector[PID=526128] output: Traceback (most recent call last): | |
I+00000.293: Injector[PID=526128] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.293: Injector[PID=526128] output: return _run_code(code, main_globals, None, | |
I+00000.293: Injector[PID=526128] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.293: Injector[PID=526128] output: exec(code, run_globals) | |
I+00000.293: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.293: Injector[PID=526128] output: cli.main() | |
I+00000.293: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.293: Injector[PID=526128] output: run() | |
I+00000.293: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.293: Injector[PID=526128] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.293: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.293: Injector[PID=526128] output: add_code_to_python_process.run_python_code( | |
I+00000.293: Injector[PID=526128] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.293: Injector[PID=526128] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.293: Injector[PID=526128] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.293: Injector[PID=526128] output: raise CalledProcessError(retcode, cmd) | |
I+00000.294: Injector[PID=526128] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.312: Injector[PID=526128] exited. | |
D+00001.064: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.064: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526128 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.098: Code injection into PID=526128 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.077: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.079: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.079: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.526154.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-526154.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.043: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.043: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:46475', '--adapter-access-token', 'dd9637966b2bfd1e0cc874f4d747eeb285e008c4f4e58e7ffa1605e860a31252', '--pid', '526128'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.043: Attaching to process with PID=526128 | |
I+00000.043: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.044: Injecting code into process with PID=526128 ... | |
E+00000.098: Code injection into PID=526128 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526128 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 54, 52, 55, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 100, 100, 57, 54, 51, 55, 57, 54, 54, 98, 50, 98, 102, 100, 49, 101, 48, 99, 99, 56, 55, 52, 102, 52, 100, 55, 52, 55, 101, 101, 98, 50, 56, 53, 101, 48, 48, 56, 99, 52, 102, 52, 101, 53, 56, 101, 55, 102, 102, 97, 49, 54, 48, 53, 101, 56, 54, 48, 97, 51, 49, 50, 53, 50, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.098: Not logging to "<stderr>" anymore. | |
I+15.285: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-module-attach_pid]/tests-484867.log" anymore. | |
________________________________________________ test_frame_eval[no-program-attach_pid] _________________________________________________ | |
[gw6] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7fa3f56935b0>, target = <class 'tests.debug.targets.Program'>, run = attach_pid | |
frame_eval = 'no' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7fa3f55aff70> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.167: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/tests-484876.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] started. | |
I+00.031: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.032: Starting Session[1] | |
I+00.033: Listening for incoming connection from BackChannel[1] on port 40559... | |
I+00.033: Attaching Session[1] to program "/tmp/pytest-of-toby/pytest-1/popen-gw6/test_frame_eval_no_program_att3/code_to_debug.py" by PID. | |
I+00.033: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/Session[1]" | |
I+00.033: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/tmp/pytest-of-toby/pytest-1/popen-gw6/test_frame_eval_no_program_att3/code_to_debug.py" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw6", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] (call)", | |
"PYDEVD_USE_FRAME_EVAL": "no", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "40559", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw6/test_frame_eval_no_program_att3/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.034: Spawned Debuggee[1] with PID=526176 | |
D+00.034: watchdog-484876 <-- ['register_spawn', 526176, 'Debuggee[1]'] | |
D+00.034: watchdog-484876 --> ['ok'] | |
I+00.034: Capturing Debuggee[1] stdout | |
I+00.034: Capturing Debuggee[1] stderr | |
I+00.035: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw6", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "40559" | |
} | |
I+00.035: Spawned Adapter[1] with PID=526180 | |
D+00.035: watchdog-484876 <-- ['register_spawn', 526180, 'Adapter[1]'] | |
D+00.035: watchdog-484876 --> ['ok'] | |
D+00.035: Starting message loop for channel Adapter[1] | |
I+00.036: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.066: Incoming connection from BackChannel[1] accepted. | |
D+00.168: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.169: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.170: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.171: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.171: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.172: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.172: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.173: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"program": "/tmp/pytest-of-toby/pytest-1/popen-gw6/test_frame_eval_no_program_att3/code_to_debug.py", | |
"args": [], | |
"processId": 526176, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.173: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.174: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 36241 | |
} | |
} | |
D+01.176: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.177: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526176 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.105: Code injection into PID=526176 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.190: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.192: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.192: Ending Session[1]. | |
E+15.193: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.193: Killing Adapter[1]. | |
I+15.193: Killing Debuggee[1]. | |
D+15.193: Closing Adapter[1] message stream | |
D+15.195: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.195: Waiting for Adapter[1] to close listener ports ... | |
I+15.195: Waiting for Adapter[1] with PID=526180 to exit. | |
D+15.195: watchdog-484876 <-- ['unregister_spawn', 526180, 'Adapter[1]'] | |
D+15.195: watchdog-484876 --> ['ok'] | |
D+15.196: Closing BackChannel[1] client socket... | |
D+15.196: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.294: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] passed. | |
E+15.294: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] failed. | |
I+15.295: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-526180.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.005: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.051: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.052: Listening for incoming Client connections on 127.0.0.1:38107... | |
I+00000.052: Connecting to client over stdio... | |
D+00000.053: Starting message loop for channel Client[1] | |
D+00000.053: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.053: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.056: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.056: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.056: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.056: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.057: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"program": "/tmp/pytest-of-toby/pytest-1/popen-gw6/test_frame_eval_no_program_att3/code_to_debug.py", | |
"args": [], | |
"processId": 526176, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.058: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:36241... | |
I+00000.058: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:36241', '--adapter-access-token', '6ad45b9f27b1c6cc30c5b751469bba83f8882cf29da6e56cf3ee26f13479a084', '--pid', '526176'] | |
D+00000.059: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 36241 | |
} | |
} | |
I+00000.059: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.243: Injector[PID=526176] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.244: Injector[PID=526176] output: Running: gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.292: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.292: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.292: Injector[PID=526176] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.292: Injector[PID=526176] output: | |
I+00000.292: Injector[PID=526176] output: During handling of the above exception, another exception occurred: | |
I+00000.292: Injector[PID=526176] output: | |
I+00000.292: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.292: Injector[PID=526176] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.292: Injector[PID=526176] output: __import__(modname) | |
I+00000.292: Injector[PID=526176] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.292: Injector[PID=526176] output: import copy | |
I+00000.292: Injector[PID=526176] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.292: Injector[PID=526176] output: from org.python.core import PyStringMap | |
I+00000.292: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.292: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.292: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.292: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.292: Injector[PID=526176] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.292: Injector[PID=526176] output: | |
I+00000.293: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.293: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.293: Injector[PID=526176] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.293: Injector[PID=526176] output: | |
I+00000.293: Injector[PID=526176] output: During handling of the above exception, another exception occurred: | |
I+00000.293: Injector[PID=526176] output: | |
I+00000.293: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.293: Injector[PID=526176] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.293: Injector[PID=526176] output: __import__(modname) | |
I+00000.293: Injector[PID=526176] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.293: Injector[PID=526176] output: import copy | |
I+00000.293: Injector[PID=526176] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.293: Injector[PID=526176] output: from org.python.core import PyStringMap | |
I+00000.293: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.293: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.293: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.293: Injector[PID=526176] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.294: Injector[PID=526176] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.294: Injector[PID=526176] output: | |
I+00000.297: Injector[PID=526176] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.297: Injector[PID=526176] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.297: Injector[PID=526176] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.297: Injector[PID=526176] output: ptrace: Inappropriate ioctl for device. | |
I+00000.297: Injector[PID=526176] output: Target 'None' cannot support this command. | |
I+00000.297: Injector[PID=526176] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.297: Injector[PID=526176] output: No symbol table is loaded. Use the "file" command. | |
I+00000.297: Injector[PID=526176] output: No symbol table is loaded. Use the "file" command. | |
I+00000.304: Injector[PID=526176] output: E+00000.105: Code injection into PID=526176 failed: | |
I+00000.304: Injector[PID=526176] output: | |
I+00000.304: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.304: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.304: Injector[PID=526176] output: add_code_to_python_process.run_python_code( | |
I+00000.304: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.304: Injector[PID=526176] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.304: Injector[PID=526176] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.304: Injector[PID=526176] output: raise CalledProcessError(retcode, cmd) | |
I+00000.306: Injector[PID=526176] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.306: Injector[PID=526176] output: | |
I+00000.306: Injector[PID=526176] output: Stack where logged: | |
I+00000.306: Injector[PID=526176] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.306: Injector[PID=526176] output: return _run_code(code, main_globals, None, | |
I+00000.306: Injector[PID=526176] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.306: Injector[PID=526176] output: exec(code, run_globals) | |
I+00000.306: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.306: Injector[PID=526176] output: cli.main() | |
I+00000.306: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.306: Injector[PID=526176] output: run() | |
I+00000.306: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.306: Injector[PID=526176] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.306: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.306: Injector[PID=526176] output: _exception(format_string, *args, **kwargs) | |
I+00000.307: Injector[PID=526176] output: | |
I+00000.307: Injector[PID=526176] output: | |
I+00000.307: Injector[PID=526176] output: Traceback (most recent call last): | |
I+00000.307: Injector[PID=526176] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.307: Injector[PID=526176] output: return _run_code(code, main_globals, None, | |
I+00000.307: Injector[PID=526176] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.307: Injector[PID=526176] output: exec(code, run_globals) | |
I+00000.307: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.307: Injector[PID=526176] output: cli.main() | |
I+00000.307: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.307: Injector[PID=526176] output: run() | |
I+00000.307: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.307: Injector[PID=526176] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.307: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.307: Injector[PID=526176] output: add_code_to_python_process.run_python_code( | |
I+00000.307: Injector[PID=526176] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.308: Injector[PID=526176] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.308: Injector[PID=526176] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.308: Injector[PID=526176] output: raise CalledProcessError(retcode, cmd) | |
I+00000.309: Injector[PID=526176] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.330: Injector[PID=526176] exited. | |
D+00001.060: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.061: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526176 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.105: Code injection into PID=526176 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.074: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.075: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.075: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.526198.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-526198.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.044: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.044: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:36241', '--adapter-access-token', '6ad45b9f27b1c6cc30c5b751469bba83f8882cf29da6e56cf3ee26f13479a084', '--pid', '526176'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.044: Attaching to process with PID=526176 | |
I+00000.044: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.044: Injecting code into process with PID=526176 ... | |
E+00000.105: Code injection into PID=526176 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526176 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 51, 54, 50, 52, 49, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 54, 97, 100, 52, 53, 98, 57, 102, 50, 55, 98, 49, 99, 54, 99, 99, 51, 48, 99, 53, 98, 55, 53, 49, 52, 54, 57, 98, 98, 97, 56, 51, 102, 56, 56, 56, 50, 99, 102, 50, 57, 100, 97, 54, 101, 53, 54, 99, 102, 51, 101, 101, 50, 54, 102, 49, 51, 52, 55, 57, 97, 48, 56, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.106: Not logging to "<stderr>" anymore. | |
I+15.296: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-program-attach_pid]/tests-484876.log" anymore. | |
_________________________________________________ test_frame_eval[no-module-attach_pid] _________________________________________________ | |
[gw1] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7f0b39653010>, target = <class 'tests.debug.targets.Module'>, run = attach_pid | |
frame_eval = 'no' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7f0b383280a0> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.128: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/tests-484855.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] started. | |
I+00.027: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.029: Starting Session[1] | |
I+00.029: Listening for incoming connection from BackChannel[1] on port 43887... | |
I+00.030: Attaching Session[1] to module code_to_debug by PID. | |
I+00.030: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/Session[1]" | |
I+00.030: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"-m", | |
"code_to_debug" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw1", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] (call)", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH:/tmp/pytest-of-toby/pytest-1/popen-gw1/test_frame_eval_no_module_atta2", | |
"PYDEVD_USE_FRAME_EVAL": "no", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "43887", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw1/test_frame_eval_no_module_atta2/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.030: Spawned Debuggee[1] with PID=526327 | |
D+00.030: watchdog-484855 <-- ['register_spawn', 526327, 'Debuggee[1]'] | |
D+00.031: watchdog-484855 --> ['ok'] | |
I+00.031: Capturing Debuggee[1] stdout | |
I+00.031: Capturing Debuggee[1] stderr | |
I+00.031: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw1", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "43887" | |
} | |
I+00.031: Spawned Adapter[1] with PID=526331 | |
D+00.032: watchdog-484855 <-- ['register_spawn', 526331, 'Adapter[1]'] | |
D+00.032: watchdog-484855 --> ['ok'] | |
D+00.032: Starting message loop for channel Adapter[1] | |
I+00.032: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.065: Incoming connection from BackChannel[1] accepted. | |
D+00.154: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.154: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.155: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.155: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.156: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.156: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.157: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.157: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"module": "code_to_debug", | |
"args": [], | |
"processId": 526327, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.157: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.158: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 41265 | |
} | |
} | |
D+01.160: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.163: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526327 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.114: Code injection into PID=526327 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.174: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.176: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.176: Ending Session[1]. | |
E+15.176: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.177: Killing Adapter[1]. | |
I+15.177: Killing Debuggee[1]. | |
D+15.177: Closing Adapter[1] message stream | |
D+15.178: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.179: Waiting for Adapter[1] to close listener ports ... | |
I+15.179: Waiting for Adapter[1] with PID=526331 to exit. | |
D+15.179: watchdog-484855 <-- ['unregister_spawn', 526331, 'Adapter[1]'] | |
D+15.179: watchdog-484855 --> ['ok'] | |
D+15.179: Closing BackChannel[1] client socket... | |
D+15.179: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.261: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] passed. | |
E+15.261: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] failed. | |
I+15.261: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-526331.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.049: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.050: Listening for incoming Client connections on 127.0.0.1:40473... | |
I+00000.050: Connecting to client over stdio... | |
D+00000.050: Starting message loop for channel Client[1] | |
D+00000.051: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.051: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.053: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.053: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.053: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.053: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.054: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"module": "code_to_debug", | |
"args": [], | |
"processId": 526327, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.054: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:41265... | |
I+00000.055: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:41265', '--adapter-access-token', '3ee5de5077c5993ace6abd793d203f7cf80c5e37cade1a8dddea5b9c7b8e9d34', '--pid', '526327'] | |
D+00000.055: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 41265 | |
} | |
} | |
I+00000.055: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.277: Injector[PID=526327] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.277: Injector[PID=526327] output: Running: gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.325: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.325: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.325: Injector[PID=526327] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.325: Injector[PID=526327] output: | |
I+00000.325: Injector[PID=526327] output: During handling of the above exception, another exception occurred: | |
I+00000.325: Injector[PID=526327] output: | |
I+00000.325: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.326: Injector[PID=526327] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.326: Injector[PID=526327] output: __import__(modname) | |
I+00000.326: Injector[PID=526327] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.326: Injector[PID=526327] output: import copy | |
I+00000.326: Injector[PID=526327] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.326: Injector[PID=526327] output: from org.python.core import PyStringMap | |
I+00000.326: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.326: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.326: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.326: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.326: Injector[PID=526327] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.326: Injector[PID=526327] output: | |
I+00000.326: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.326: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.326: Injector[PID=526327] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.326: Injector[PID=526327] output: | |
I+00000.326: Injector[PID=526327] output: During handling of the above exception, another exception occurred: | |
I+00000.326: Injector[PID=526327] output: | |
I+00000.327: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.327: Injector[PID=526327] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.327: Injector[PID=526327] output: __import__(modname) | |
I+00000.327: Injector[PID=526327] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.327: Injector[PID=526327] output: import copy | |
I+00000.327: Injector[PID=526327] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.327: Injector[PID=526327] output: from org.python.core import PyStringMap | |
I+00000.327: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.327: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.327: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.327: Injector[PID=526327] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.327: Injector[PID=526327] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.327: Injector[PID=526327] output: | |
I+00000.331: Injector[PID=526327] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.331: Injector[PID=526327] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.331: Injector[PID=526327] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.331: Injector[PID=526327] output: ptrace: Inappropriate ioctl for device. | |
I+00000.331: Injector[PID=526327] output: Target 'None' cannot support this command. | |
I+00000.331: Injector[PID=526327] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.331: Injector[PID=526327] output: No symbol table is loaded. Use the "file" command. | |
I+00000.331: Injector[PID=526327] output: No symbol table is loaded. Use the "file" command. | |
I+00000.340: Injector[PID=526327] output: E+00000.114: Code injection into PID=526327 failed: | |
I+00000.340: Injector[PID=526327] output: | |
I+00000.340: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.340: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.340: Injector[PID=526327] output: add_code_to_python_process.run_python_code( | |
I+00000.340: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.340: Injector[PID=526327] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.340: Injector[PID=526327] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.340: Injector[PID=526327] output: raise CalledProcessError(retcode, cmd) | |
I+00000.341: Injector[PID=526327] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.341: Injector[PID=526327] output: | |
I+00000.341: Injector[PID=526327] output: Stack where logged: | |
I+00000.341: Injector[PID=526327] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.341: Injector[PID=526327] output: return _run_code(code, main_globals, None, | |
I+00000.341: Injector[PID=526327] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.341: Injector[PID=526327] output: exec(code, run_globals) | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.342: Injector[PID=526327] output: cli.main() | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.342: Injector[PID=526327] output: run() | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.342: Injector[PID=526327] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.342: Injector[PID=526327] output: _exception(format_string, *args, **kwargs) | |
I+00000.342: Injector[PID=526327] output: | |
I+00000.342: Injector[PID=526327] output: | |
I+00000.342: Injector[PID=526327] output: Traceback (most recent call last): | |
I+00000.342: Injector[PID=526327] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.342: Injector[PID=526327] output: return _run_code(code, main_globals, None, | |
I+00000.342: Injector[PID=526327] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.342: Injector[PID=526327] output: exec(code, run_globals) | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.342: Injector[PID=526327] output: cli.main() | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.342: Injector[PID=526327] output: run() | |
I+00000.342: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.343: Injector[PID=526327] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.343: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.343: Injector[PID=526327] output: add_code_to_python_process.run_python_code( | |
I+00000.343: Injector[PID=526327] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.343: Injector[PID=526327] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.343: Injector[PID=526327] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.343: Injector[PID=526327] output: raise CalledProcessError(retcode, cmd) | |
I+00000.344: Injector[PID=526327] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.377: Injector[PID=526327] exited. | |
D+00001.057: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.058: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 526327 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.114: Code injection into PID=526327 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.070: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.071: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.071: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.526341.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-526341.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.050: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.051: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:41265', '--adapter-access-token', '3ee5de5077c5993ace6abd793d203f7cf80c5e37cade1a8dddea5b9c7b8e9d34', '--pid', '526327'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.051: Attaching to process with PID=526327 | |
I+00000.051: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.051: Injecting code into process with PID=526327 ... | |
E+00000.114: Code injection into PID=526327 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 526327 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 49, 50, 54, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 51, 101, 101, 53, 100, 101, 53, 48, 55, 55, 99, 53, 57, 57, 51, 97, 99, 101, 54, 97, 98, 100, 55, 57, 51, 100, 50, 48, 51, 102, 55, 99, 102, 56, 48, 99, 53, 101, 51, 55, 99, 97, 100, 101, 49, 97, 56, 100, 100, 100, 101, 97, 53, 98, 57, 99, 55, 98, 56, 101, 57, 100, 51, 52, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.115: Not logging to "<stderr>" anymore. | |
I+15.262: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-module-attach_pid]/tests-484855.log" anymore. | |
__________________________________________________ test_frame_eval[no-code-attach_pid] __________________________________________________ | |
[gw3] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7ff14a4bd2d0>, target = <class 'tests.debug.targets.Code'>, run = attach_pid | |
frame_eval = 'no' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7ff14a9fa6b0> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.151: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/tests-484863.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] started. | |
I+00.032: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.033: Starting Session[1] | |
I+00.034: Listening for incoming connection from BackChannel[1] on port 43951... | |
I+00.034: Attaching Session[1] to code: [ | |
"import debuggee", | |
"from debuggee import backchannel", | |
"", | |
"debuggee.setup()", | |
"", | |
"from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL", | |
"", | |
"backchannel.send(USING_FRAME_EVAL)", | |
"" | |
] by PID. | |
I+00.034: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/Session[1]" | |
I+00.034: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"-c", | |
"import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw3", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] (call)", | |
"PYDEVD_USE_FRAME_EVAL": "no", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "43951", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw3/test_frame_eval_no_code_attach2/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.035: Spawned Debuggee[1] with PID=527151 | |
D+00.035: watchdog-484863 <-- ['register_spawn', 527151, 'Debuggee[1]'] | |
D+00.035: watchdog-484863 --> ['ok'] | |
I+00.035: Capturing Debuggee[1] stdout | |
I+00.035: Capturing Debuggee[1] stderr | |
I+00.036: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw3", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "43951" | |
} | |
I+00.036: Spawned Adapter[1] with PID=527155 | |
D+00.036: watchdog-484863 <-- ['register_spawn', 527155, 'Adapter[1]'] | |
D+00.037: watchdog-484863 --> ['ok'] | |
D+00.037: Starting message loop for channel Adapter[1] | |
I+00.037: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.066: Incoming connection from BackChannel[1] accepted. | |
D+00.188: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.188: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.189: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.190: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.190: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.191: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.191: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.191: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"code": "import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n", | |
"args": [], | |
"processId": 527151, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.192: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.193: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 40685 | |
} | |
} | |
D+01.197: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.197: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 527151 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.111: Code injection into PID=527151 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.267: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.269: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.269: Ending Session[1]. | |
E+15.270: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.271: Killing Adapter[1]. | |
I+15.271: Killing Debuggee[1]. | |
D+15.271: Closing Adapter[1] message stream | |
D+15.272: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.272: Waiting for Adapter[1] to close listener ports ... | |
I+15.272: Waiting for Adapter[1] with PID=527155 to exit. | |
D+15.273: watchdog-484863 <-- ['unregister_spawn', 527155, 'Adapter[1]'] | |
D+15.273: watchdog-484863 --> ['ok'] | |
D+15.273: Closing BackChannel[1] client socket... | |
D+15.273: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.354: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] passed. | |
E+15.355: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] failed. | |
I+15.355: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-527155.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.005: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.069: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.069: Listening for incoming Client connections on 127.0.0.1:46453... | |
I+00000.070: Connecting to client over stdio... | |
D+00000.070: Starting message loop for channel Client[1] | |
D+00000.070: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.070: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.073: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.073: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.073: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.073: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.074: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"code": "import debuggee\nfrom debuggee import backchannel\n\ndebuggee.setup()\n\nfrom _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL\n\nbackchannel.send(USING_FRAME_EVAL)\n", | |
"args": [], | |
"processId": 527151, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.075: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:40685... | |
I+00000.075: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:40685', '--adapter-access-token', 'ed07c5610593b8dc66a4139a35fdc6c64b2cefa59fc6e30593c2ebb744fcf9cc', '--pid', '527151'] | |
D+00000.075: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 40685 | |
} | |
} | |
I+00000.076: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.246: Injector[PID=527151] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.247: Injector[PID=527151] output: Running: gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.302: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.302: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.302: Injector[PID=527151] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.302: Injector[PID=527151] output: | |
I+00000.302: Injector[PID=527151] output: During handling of the above exception, another exception occurred: | |
I+00000.302: Injector[PID=527151] output: | |
I+00000.302: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.302: Injector[PID=527151] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.302: Injector[PID=527151] output: __import__(modname) | |
I+00000.302: Injector[PID=527151] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.302: Injector[PID=527151] output: import copy | |
I+00000.302: Injector[PID=527151] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.302: Injector[PID=527151] output: from org.python.core import PyStringMap | |
I+00000.302: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.303: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.303: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.303: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.303: Injector[PID=527151] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.303: Injector[PID=527151] output: | |
I+00000.304: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.304: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.304: Injector[PID=527151] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.304: Injector[PID=527151] output: | |
I+00000.304: Injector[PID=527151] output: During handling of the above exception, another exception occurred: | |
I+00000.304: Injector[PID=527151] output: | |
I+00000.304: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.304: Injector[PID=527151] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.304: Injector[PID=527151] output: __import__(modname) | |
I+00000.304: Injector[PID=527151] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.304: Injector[PID=527151] output: import copy | |
I+00000.304: Injector[PID=527151] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.304: Injector[PID=527151] output: from org.python.core import PyStringMap | |
I+00000.304: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.304: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.304: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.304: Injector[PID=527151] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.304: Injector[PID=527151] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.304: Injector[PID=527151] output: | |
I+00000.308: Injector[PID=527151] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.308: Injector[PID=527151] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.308: Injector[PID=527151] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.308: Injector[PID=527151] output: ptrace: Inappropriate ioctl for device. | |
I+00000.308: Injector[PID=527151] output: Target 'None' cannot support this command. | |
I+00000.308: Injector[PID=527151] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.308: Injector[PID=527151] output: No symbol table is loaded. Use the "file" command. | |
I+00000.308: Injector[PID=527151] output: No symbol table is loaded. Use the "file" command. | |
I+00000.316: Injector[PID=527151] output: E+00000.111: Code injection into PID=527151 failed: | |
I+00000.316: Injector[PID=527151] output: | |
I+00000.316: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.316: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.316: Injector[PID=527151] output: add_code_to_python_process.run_python_code( | |
I+00000.316: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.316: Injector[PID=527151] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.316: Injector[PID=527151] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.316: Injector[PID=527151] output: raise CalledProcessError(retcode, cmd) | |
I+00000.317: Injector[PID=527151] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.317: Injector[PID=527151] output: | |
I+00000.317: Injector[PID=527151] output: Stack where logged: | |
I+00000.317: Injector[PID=527151] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.317: Injector[PID=527151] output: return _run_code(code, main_globals, None, | |
I+00000.317: Injector[PID=527151] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.317: Injector[PID=527151] output: exec(code, run_globals) | |
I+00000.317: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.317: Injector[PID=527151] output: cli.main() | |
I+00000.317: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.318: Injector[PID=527151] output: run() | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.318: Injector[PID=527151] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.318: Injector[PID=527151] output: _exception(format_string, *args, **kwargs) | |
I+00000.318: Injector[PID=527151] output: | |
I+00000.318: Injector[PID=527151] output: | |
I+00000.318: Injector[PID=527151] output: Traceback (most recent call last): | |
I+00000.318: Injector[PID=527151] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.318: Injector[PID=527151] output: return _run_code(code, main_globals, None, | |
I+00000.318: Injector[PID=527151] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.318: Injector[PID=527151] output: exec(code, run_globals) | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.318: Injector[PID=527151] output: cli.main() | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.318: Injector[PID=527151] output: run() | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.318: Injector[PID=527151] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.318: Injector[PID=527151] output: add_code_to_python_process.run_python_code( | |
I+00000.318: Injector[PID=527151] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.318: Injector[PID=527151] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.318: Injector[PID=527151] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.318: Injector[PID=527151] output: raise CalledProcessError(retcode, cmd) | |
I+00000.319: Injector[PID=527151] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.341: Injector[PID=527151] exited. | |
D+00001.079: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.080: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 527151 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.111: Code injection into PID=527151 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.148: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.149: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.150: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.527185.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-527185.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.003: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.041: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.041: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:40685', '--adapter-access-token', 'ed07c5610593b8dc66a4139a35fdc6c64b2cefa59fc6e30593c2ebb744fcf9cc', '--pid', '527151'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.041: Attaching to process with PID=527151 | |
I+00000.041: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.041: Injecting code into process with PID=527151 ... | |
E+00000.111: Code injection into PID=527151 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527151 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 52, 48, 54, 56, 53, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 101, 100, 48, 55, 99, 53, 54, 49, 48, 53, 57, 51, 98, 56, 100, 99, 54, 54, 97, 52, 49, 51, 57, 97, 51, 53, 102, 100, 99, 54, 99, 54, 52, 98, 50, 99, 101, 102, 97, 53, 57, 102, 99, 54, 101, 51, 48, 53, 57, 51, 99, 50, 101, 98, 98, 55, 52, 52, 102, 99, 102, 57, 99, 99, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.112: Not logging to "<stderr>" anymore. | |
I+15.356: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[no-code-attach_pid]/tests-484863.log" anymore. | |
________________________________________________ test_frame_eval[yes-program-attach_pid] ________________________________________________ | |
[gw2] linux -- Python 3.10.4 /home/toby/replit/debugpy/.tox/py310-cov/bin/python | |
pyfile = <function pyfile.<locals>.factory at 0x7fad8c5b91b0>, target = <class 'tests.debug.targets.Program'>, run = attach_pid | |
frame_eval = 'yes' | |
@pytest.mark.parametrize("run", runners.all) | |
@pytest.mark.parametrize("target", targets.all) | |
@pytest.mark.parametrize("frame_eval", ["", "yes", "no"]) | |
def test_frame_eval(pyfile, target, run, frame_eval): | |
# Frame-eval optimizations are not available for some Python implementations, | |
# but pydevd will still try to use them if the environment variable is set to | |
# "yes" explicitly, so the test must detect and skip those cases. | |
if frame_eval == "yes": | |
try: | |
import _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper # noqa | |
except ImportError: | |
pytest.skip("Frame-eval not available") | |
else: | |
pass | |
@pyfile | |
def code_to_debug(): | |
import debuggee | |
from debuggee import backchannel | |
debuggee.setup() | |
from _pydevd_frame_eval.pydevd_frame_eval_main import USING_FRAME_EVAL | |
backchannel.send(USING_FRAME_EVAL) | |
with debug.Session() as session: | |
assert "PYDEVD_USE_FRAME_EVAL" not in os.environ | |
if len(frame_eval): | |
env = ( | |
session.config.env | |
if run.request == "launch" | |
else session.spawn_debuggee.env | |
) | |
env["PYDEVD_USE_FRAME_EVAL"] = frame_eval | |
backchannel = session.open_backchannel() | |
> with run(session, target(code_to_debug)): | |
tests/debugpy/test_run.py:323: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.10/contextlib.py:135: in __enter__ | |
return next(self.gen) | |
tests/debug/runners.py:202: in attach_pid | |
with session.request_attach(): | |
tests/debug/session.py:638: in request_attach | |
return self._request_start("attach") | |
tests/debug/session.py:599: in _request_start | |
start_request.response.result # raise exception if failed | |
tests/timeline.py:1115: in result | |
return self.message.result | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <debugpy.common.messaging.Response object at 0x7fad8d375e40> | |
@property | |
def result(self): | |
"""Result of the request. Returns the value of response.body, unless it | |
is an exception, in which case it is raised instead. | |
""" | |
if self.success: | |
return self.body | |
else: | |
> raise self.body | |
E debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py:908: MessageHandlingError | |
--------------------------------------------------------- Captured stdout setup --------------------------------------------------------- | |
--------------------------------------------------------- Captured stderr setup --------------------------------------------------------- | |
I+01.168: Also logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/tests-484859.log". | |
I+00.000: tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] started. | |
I+00.054: Environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
--------------------------------------------------------- Captured stderr call ---------------------------------------------------------- | |
I+00.056: Starting Session[1] | |
I+00.057: Listening for incoming connection from BackChannel[1] on port 49251... | |
I+00.057: Attaching Session[1] to program "/tmp/pytest-of-toby/pytest-1/popen-gw2/test_frame_eval_yes_program_at4/code_to_debug.py" by PID. | |
I+00.058: Logs for Session[1] will be in "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/Session[1]" | |
I+00.058: Spawning Debuggee[1]: | |
Current directory: null | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/tmp/pytest-of-toby/pytest-1/popen-gw2/test_frame_eval_yes_program_at4/code_to_debug.py" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw2", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] (call)", | |
"PYDEVD_USE_FRAME_EVAL": "yes", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "49251", | |
"DEBUGPY_ADAPTER_ENDPOINTS": "/tmp/pytest-of-toby/pytest-1/popen-gw2/test_frame_eval_yes_program_at4/Session[1]/adapter_endpoints", | |
"DEBUGPY_TEST_DEBUGGEE_SETUP": "\nimport sys\nimport threading\nimport time\n\nwhile \"debugpy\" not in sys.modules:\n time.sleep(0.1)\n\nfrom debuggee import scratchpad\n\nwhile \"_attach_pid\" not in scratchpad:\n time.sleep(0.1)\n " | |
} | |
I+00.058: Spawned Debuggee[1] with PID=527622 | |
D+00.059: watchdog-484859 <-- ['register_spawn', 527622, 'Debuggee[1]'] | |
D+00.059: watchdog-484859 --> ['ok'] | |
I+00.059: Capturing Debuggee[1] stdout | |
I+00.059: Capturing Debuggee[1] stderr | |
I+00.059: Spawning Adapter[1]: | |
Command line: [ | |
"/home/toby/replit/debugpy/.tox/py310-cov/bin/python", | |
"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter" | |
] | |
Environment variables: { | |
"HOME": "/home/toby", | |
"LANG": "en_US.UTF-8", | |
"TERM": "xterm-256color", | |
"PATH": "/home/toby/replit/debugpy/.tox/py310-cov/bin:/home/toby/replit/debugpy/venv/bin:/home/toby/google-cloud-sdk/bin:/home/toby/.deno/bin:/home/toby/.nvm/versions/node/v16.13.2/bin:/home/toby/.nix-profile/bin:/home/toby/.cargo/bin:/home/toby/.poetry/bin:/home/toby/.local/bin:/home/toby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/toby/go/bin:/home/toby/replay:/home/toby/.local/bin/:/home/toby/.docker/cli-plugins/", | |
"PYTHONHASHSEED": "629887795", | |
"PIP_DISABLE_PIP_VERSION_CHECK": "1", | |
"PYTHONIOENCODING": "utf-8", | |
"DEBUGPY_TEST": "1", | |
"TOX_ENV_NAME": "py310-cov", | |
"TOX_WORK_DIR": "/home/toby/replit/debugpy/.tox", | |
"TOX_ENV_DIR": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"VIRTUAL_ENV": "/home/toby/replit/debugpy/.tox/py310-cov", | |
"COLUMNS": "137", | |
"LINES": "32", | |
"TOX_PACKAGE": "/home/toby/replit/debugpy/.tox/.tmp/package/2/debugpy-1.8.0.tar.gz", | |
"PYTEST_XDIST_TESTRUNUID": "8e32aebb4b294470bff4c4adc80dd217", | |
"PYTEST_XDIST_WORKER": "gw2", | |
"PYTEST_XDIST_WORKER_COUNT": "8", | |
"COV_CORE_SOURCE": ":", | |
"COV_CORE_CONFIG": "/home/toby/replit/debugpy/.coveragerc", | |
"COV_CORE_DATAFILE": "/home/toby/replit/debugpy/coverage/.coverage", | |
"PYTEST_CURRENT_TEST": "tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] (call)", | |
"PYTHONUNBUFFERED": "1", | |
"PYTHONWARNINGS": "error", | |
"DEBUGPY_TEST_SESSION_ID": "1", | |
"PYTHONPATH": "/home/toby/replit/debugpy/tests/DEBUGGEE_PYTHONPATH", | |
"DEBUGPY_LOG_DIR": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/Session[1]", | |
"PYDEVD_DEBUG": "True", | |
"PYDEVD_DEBUG_FILE": "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/Session[1]/pydevd.log", | |
"DEBUGPY_TEST_BACKCHANNEL_PORT": "49251" | |
} | |
I+00.060: Spawned Adapter[1] with PID=527629 | |
D+00.060: watchdog-484859 <-- ['register_spawn', 527629, 'Adapter[1]'] | |
D+00.061: watchdog-484859 --> ['ok'] | |
D+00.061: Starting message loop for channel Adapter[1] | |
I+00.061: Waiting for next ({..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
}) | |
I+00.096: Incoming connection from BackChannel[1] accepted. | |
D+00.206: Adapter[1] --> { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00.207: Adapter[1] --> { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
I+00.208: Realized ( | |
1.mark('START') >> | |
( | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} & | |
{..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
) | |
): | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 1, "type": "event", "event": "output"} | |
where {..., | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": <str> | |
} | |
} | |
} | |
== {"seq": 2, "type": "event", "event": "output"} | |
D+00.209: Adapter[1] <-- { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
I+00.209: Waiting for {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
D+00.210: Adapter[1] --> { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
I+00.211: Realized {..., "type": "response", "command": "initialize", "request_seq": 1, ...} | |
== {"seq": 3, "type": "response", "command": "initialize", "request_seq": 1} | |
D+00.211: Adapter[1] <-- { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"program": "/tmp/pytest-of-toby/pytest-1/popen-gw2/test_frame_eval_yes_program_at4/code_to_debug.py", | |
"args": [], | |
"processId": 527622, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00.211: Waiting for ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
) | |
D+00.212: Adapter[1] --> { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 56223 | |
} | |
} | |
D+01.217: Adapter[1] --> { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+01.219: Adapter[1] --> { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 527622 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.109: Code injection into PID=527622 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
D+15.287: Adapter[1] --> { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
I+15.288: Realized ( | |
{..., "type": "event", "event": "initialized", ...} | | |
{..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
): | |
where {..., "type": "response", "command": "attach", "request_seq": 2, ...} | |
== {"seq": 7, "type": "response", "command": "attach", "request_seq": 2} | |
I+15.288: Ending Session[1]. | |
E+15.289: Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 323, in test_frame_eval | |
with run(session, target(code_to_debug)): | |
File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__ | |
return next(self.gen) | |
File "/home/toby/replit/debugpy/tests/debug/runners.py", line 202, in attach_pid | |
with session.request_attach(): | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 638, in request_attach | |
return self._request_start("attach") | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 599, in _request_start | |
start_request.response.result # raise exception if failed | |
File "/home/toby/replit/debugpy/tests/timeline.py", line 1115, in result | |
return self.message.result | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/messaging.py", line 908, in result | |
raise self.body | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "<string>", line 1, in <module> | |
File "<string>", line 8, in <module> | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1640, in serve | |
WorkerGateway(io=io, id=id, _startcount=2).serve() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1142, in serve | |
self._execpool.integrate_as_primary_thread() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 343, in integrate_as_primary_thread | |
self._perform_spawn(reply) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 361, in _perform_spawn | |
reply.run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 296, in run | |
self._result = func(*args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/execnet/gateway_base.py", line 1157, in executetask | |
exec(co, loc) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 355, in <module> | |
config.hook.pytest_cmdline_main(config=config) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main | |
return wrap_session(config, _main) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session | |
session.exitstatus = doit(config, session) or 0 | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/main.py", line 325, in _main | |
config.hook.pytest_runtestloop(session=session) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 157, in pytest_runtestloop | |
self.run_one_test() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/remote.py", line 174, in run_one_test | |
self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol | |
runtestprotocol(item, nextitem=nextitem) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol | |
reports.append(call_and_report(item, "call", log)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 222, in call_and_report | |
call = call_runtest_hook(item, when, **kwds) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 261, in call_runtest_hook | |
return CallInfo.from_call( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call | |
result: Optional[TResult] = func() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 262, in <lambda> | |
lambda: ihook(item=item, **kwds), when=when, reraise=reraise | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call | |
item.runtest() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 1792, in runtest | |
self.ihook.pytest_pyfunc_call(pyfuncitem=self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__ | |
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec | |
return self._inner_hookexec(hook_name, methods, kwargs, firstresult) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall | |
res = hook_impl.function(*args) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call | |
result = testfunction(**testargs) | |
File "/home/toby/replit/debugpy/tests/debugpy/test_run.py", line 312, in test_frame_eval | |
with debug.Session() as session: | |
File "/home/toby/replit/debugpy/tests/debug/session.py", line 248, in __exit__ | |
log.swallow_exception(exc_info=(exc_type, exc_val, exc_tb)) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
I+15.289: Killing Adapter[1]. | |
I+15.289: Killing Debuggee[1]. | |
D+15.289: Closing Adapter[1] message stream | |
D+15.291: Exiting message loop for channel Adapter[1]: No more messages | |
I+15.291: Waiting for Adapter[1] to close listener ports ... | |
I+15.292: Waiting for Adapter[1] with PID=527629 to exit. | |
D+15.292: watchdog-484859 <-- ['unregister_spawn', 527629, 'Adapter[1]'] | |
D+15.292: watchdog-484859 --> ['ok'] | |
D+15.292: Closing BackChannel[1] client socket... | |
D+15.292: Closing BackChannel[1] server socket... | |
------------------------------------------------------- Captured stderr teardown -------------------------------------------------------- | |
I+15.400: pytest setup phase for tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] passed. | |
E+15.400: pytest call phase for tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] failed. | |
I+15.401: Dumping logs from "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.adapter-527629.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.005: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.054: debugpy.adapter startup environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.054: Listening for incoming Client connections on 127.0.0.1:38585... | |
I+00000.055: Connecting to client over stdio... | |
D+00000.055: Starting message loop for channel Client[1] | |
D+00000.055: Client[1] <-- { | |
"seq": 1, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "ptvsd", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.055: Client[1] <-- { | |
"seq": 2, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "telemetry", | |
"output": "debugpy", | |
"data": { | |
"packageVersion": "1.8.0" | |
} | |
} | |
} | |
D+00000.058: Client[1] --> { | |
"seq": 1, | |
"type": "request", | |
"command": "initialize", | |
"arguments": { | |
"pathFormat": "path", | |
"clientID": "vscode", | |
"adapterID": "test", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"supportsVariableType": true, | |
"supportsRunInTerminalRequest": true, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
} | |
D+00000.059: /handling #1 request "initialize" from Client[1]/ | |
Capabilities: { | |
"supportsVariableType": true, | |
"supportsVariablePaging": false, | |
"supportsRunInTerminalRequest": true, | |
"supportsMemoryReferences": false, | |
"supportsArgsCanBeInterpretedByShell": true, | |
"supportsStartDebuggingRequest": false | |
} | |
D+00000.059: /handling #1 request "initialize" from Client[1]/ | |
Expectations: { | |
"locale": "en-US", | |
"linesStartAt1": true, | |
"columnsStartAt1": true, | |
"pathFormat": "path" | |
} | |
D+00000.059: /handling #1 request "initialize" from Client[1]/ | |
Client[1] <-- { | |
"seq": 3, | |
"type": "response", | |
"request_seq": 1, | |
"success": true, | |
"command": "initialize", | |
"body": { | |
"supportsCompletionsRequest": true, | |
"supportsConditionalBreakpoints": true, | |
"supportsConfigurationDoneRequest": true, | |
"supportsDebuggerProperties": true, | |
"supportsDelayedStackTraceLoading": true, | |
"supportsEvaluateForHovers": true, | |
"supportsExceptionInfoRequest": true, | |
"supportsExceptionOptions": true, | |
"supportsFunctionBreakpoints": true, | |
"supportsHitConditionalBreakpoints": true, | |
"supportsLogPoints": true, | |
"supportsModulesRequest": true, | |
"supportsSetExpression": true, | |
"supportsSetVariable": true, | |
"supportsValueFormattingOptions": true, | |
"supportsTerminateRequest": true, | |
"supportsGotoTargetsRequest": true, | |
"supportsClipboardContext": true, | |
"exceptionBreakpointFilters": [ | |
{ | |
"filter": "raised", | |
"label": "Raised Exceptions", | |
"default": false, | |
"description": "Break whenever any exception is raised." | |
}, | |
{ | |
"filter": "uncaught", | |
"label": "Uncaught Exceptions", | |
"default": true, | |
"description": "Break when the process is exiting due to unhandled exception." | |
}, | |
{ | |
"filter": "userUnhandled", | |
"label": "User Uncaught Exceptions", | |
"default": false, | |
"description": "Break when exception escapes into library code." | |
} | |
], | |
"supportsStepInTargetsRequest": true | |
} | |
} | |
D+00000.060: Client[1] --> { | |
"seq": 2, | |
"type": "request", | |
"command": "attach", | |
"arguments": { | |
"justMyCode": true, | |
"name": "Test", | |
"type": "python", | |
"program": "/tmp/pytest-of-toby/pytest-1/popen-gw2/test_frame_eval_yes_program_at4/code_to_debug.py", | |
"args": [], | |
"processId": 527622, | |
"debugOptions": [ | |
"ShowReturnValue" | |
] | |
} | |
} | |
I+00000.061: /handling #2 request "attach" from Client[1]/ | |
Listening for incoming Server connections on 127.0.0.1:56223... | |
I+00000.061: /handling #2 request "attach" from Client[1]/ | |
Spawning attach-to-PID debugger injector: ['/home/toby/replit/debugpy/.tox/py310-cov/bin/python', '/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:56223', '--adapter-access-token', '4bd7e665b055b7cb7775e7fb57d6c05c689710781edce632e3755a385f5b2d28', '--pid', '527622'] | |
D+00000.062: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 4, | |
"type": "event", | |
"event": "debugpyWaitingForServer", | |
"body": { | |
"host": "127.0.0.1", | |
"port": 56223 | |
} | |
} | |
I+00000.062: /handling #2 request "attach" from Client[1]/ | |
Session[1] waiting for connection from debug server... | |
I+00000.272: Injector[PID=527622] output: PYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols). | |
I+00000.273: Injector[PID=527622] output: Running: gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)' | |
I+00000.320: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.320: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.320: Injector[PID=527622] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.320: Injector[PID=527622] output: | |
I+00000.320: Injector[PID=527622] output: During handling of the above exception, another exception occurred: | |
I+00000.320: Injector[PID=527622] output: | |
I+00000.320: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.320: Injector[PID=527622] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.320: Injector[PID=527622] output: __import__(modname) | |
I+00000.320: Injector[PID=527622] output: File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 19, in <module> | |
I+00000.321: Injector[PID=527622] output: import copy | |
I+00000.321: Injector[PID=527622] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.321: Injector[PID=527622] output: from org.python.core import PyStringMap | |
I+00000.321: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.321: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.321: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.321: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.321: Injector[PID=527622] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.321: Injector[PID=527622] output: | |
I+00000.321: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.322: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 939, in _find_spec | |
I+00000.322: Injector[PID=527622] output: AttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec' | |
I+00000.322: Injector[PID=527622] output: | |
I+00000.322: Injector[PID=527622] output: During handling of the above exception, another exception occurred: | |
I+00000.322: Injector[PID=527622] output: | |
I+00000.322: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.322: Injector[PID=527622] output: File "/usr/share/gdb/python/gdb/__init__.py", line 182, in _auto_load_packages | |
I+00000.322: Injector[PID=527622] output: __import__(modname) | |
I+00000.322: Injector[PID=527622] output: File "/usr/share/gdb/python/gdb/command/type_printers.py", line 17, in <module> | |
I+00000.322: Injector[PID=527622] output: import copy | |
I+00000.322: Injector[PID=527622] output: File "/usr/lib/python3.10/copy.py", line 60, in <module> | |
I+00000.322: Injector[PID=527622] output: from org.python.core import PyStringMap | |
I+00000.322: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load | |
I+00000.322: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked | |
I+00000.322: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 941, in _find_spec | |
I+00000.322: Injector[PID=527622] output: File "<frozen importlib._bootstrap>", line 914, in _find_spec_legacy | |
I+00000.322: Injector[PID=527622] output: ImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module() | |
I+00000.322: Injector[PID=527622] output: | |
I+00000.326: Injector[PID=527622] output: Could not attach to process. If your uid matches the uid of the target | |
I+00000.326: Injector[PID=527622] output: process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try | |
I+00000.326: Injector[PID=527622] output: again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf | |
I+00000.326: Injector[PID=527622] output: ptrace: Inappropriate ioctl for device. | |
I+00000.326: Injector[PID=527622] output: Target 'None' cannot support this command. | |
I+00000.327: Injector[PID=527622] output: The target architecture is set to "auto" (currently "i386"). | |
I+00000.327: Injector[PID=527622] output: No symbol table is loaded. Use the "file" command. | |
I+00000.327: Injector[PID=527622] output: No symbol table is loaded. Use the "file" command. | |
I+00000.333: Injector[PID=527622] output: E+00000.109: Code injection into PID=527622 failed: | |
I+00000.334: Injector[PID=527622] output: | |
I+00000.334: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.334: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.334: Injector[PID=527622] output: add_code_to_python_process.run_python_code( | |
I+00000.334: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.334: Injector[PID=527622] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.334: Injector[PID=527622] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.334: Injector[PID=527622] output: raise CalledProcessError(retcode, cmd) | |
I+00000.335: Injector[PID=527622] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.335: Injector[PID=527622] output: | |
I+00000.335: Injector[PID=527622] output: Stack where logged: | |
I+00000.335: Injector[PID=527622] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.335: Injector[PID=527622] output: return _run_code(code, main_globals, None, | |
I+00000.335: Injector[PID=527622] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.335: Injector[PID=527622] output: exec(code, run_globals) | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.335: Injector[PID=527622] output: cli.main() | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.335: Injector[PID=527622] output: run() | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.335: Injector[PID=527622] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
I+00000.335: Injector[PID=527622] output: _exception(format_string, *args, **kwargs) | |
I+00000.335: Injector[PID=527622] output: | |
I+00000.335: Injector[PID=527622] output: | |
I+00000.335: Injector[PID=527622] output: Traceback (most recent call last): | |
I+00000.335: Injector[PID=527622] output: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
I+00000.335: Injector[PID=527622] output: return _run_code(code, main_globals, None, | |
I+00000.335: Injector[PID=527622] output: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
I+00000.335: Injector[PID=527622] output: exec(code, run_globals) | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
I+00000.335: Injector[PID=527622] output: cli.main() | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
I+00000.335: Injector[PID=527622] output: run() | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
I+00000.335: Injector[PID=527622] output: log.reraise_exception("Code injection into PID={0} failed:", pid) | |
I+00000.335: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
I+00000.336: Injector[PID=527622] output: add_code_to_python_process.run_python_code( | |
I+00000.336: Injector[PID=527622] output: File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
I+00000.336: Injector[PID=527622] output: subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
I+00000.336: Injector[PID=527622] output: File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
I+00000.336: Injector[PID=527622] output: raise CalledProcessError(retcode, cmd) | |
I+00000.336: Injector[PID=527622] output: subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
I+00000.361: Injector[PID=527622] exited. | |
D+00001.066: Client[1] <-- { | |
"seq": 5, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "Attach to PID failed.\n\n" | |
} | |
} | |
D+00001.067: Client[1] <-- { | |
"seq": 6, | |
"type": "event", | |
"event": "output", | |
"body": { | |
"category": "stderr", | |
"output": "--- Starting attach to pid: 527622 ---\nPYDEVD_GDB_SCAN_SHARED_LIBRARIES not set (scanning all libraries for needed symbols).\nRunning: gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/pretty_printers.py\", line 19, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nTraceback (most recent call last):\n File \"<frozen importlib._bootstrap>\", line 939, in _find_spec\nAttributeError: 'GdbRemoveReadlineFinder' object has no attribute 'find_spec'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/share/gdb/python/gdb/__init__.py\", line 182, in _auto_load_packages\n __import__(modname)\n File \"/usr/share/gdb/python/gdb/command/type_printers.py\", line 17, in <module>\n import copy\n File \"/usr/lib/python3.10/copy.py\", line 60, in <module>\n from org.python.core import PyStringMap\n File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1002, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 941, in _find_spec\n File \"<frozen importlib._bootstrap>\", line 914, in _find_spec_legacy\nImportWarning: GdbRemoveReadlineFinder.find_spec() not found; falling back to find_module()\n\nCould not attach to process. If your uid matches the uid of the target\nprocess, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\nagain as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\nptrace: Inappropriate ioctl for device.\nTarget 'None' cannot support this command.\nThe target architecture is set to \"auto\" (currently \"i386\").\nNo symbol table is loaded. Use the \"file\" command.\nNo symbol table is loaded. Use the \"file\" command.\nE+00000.109: Code injection into PID=527622 failed:\n \n Traceback (most recent call last):\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\n subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n \n Stack where logged:\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py\", line 222, in reraise_exception\n _exception(format_string, *args, **kwargs)\n \n\nTraceback (most recent call last):\n File \"/usr/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py\", line 39, in <module>\n cli.main()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 430, in main\n run()\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 398, in attach_to_pid\n log.reraise_exception(\"Code injection into PID={0} failed:\", pid)\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py\", line 391, in attach_to_pid\n add_code_to_python_process.run_python_code(\n File \"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py\", line 471, in run_python_code_linux\n subprocess.check_call(' '.join(cmd), shell=True, env=env)\n File \"/usr/lib/python3.10/subprocess.py\", line 369, in check_call\n raise CalledProcessError(retcode, cmd)\nsubprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen(\"/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so\", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, \"import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);\", 0)'' returned non-zero exit status 1.\n" | |
} | |
} | |
I+00015.134: All debug servers disconnected; waiting for remaining sessions... | |
E+00015.135: /handling #2 request "attach" from Client[1]/ | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1015, in __init__ | |
raise self | |
debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
Stack where logged: | |
File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap | |
self._bootstrap_inner() | |
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner | |
self.run() | |
File "/usr/lib/python3.10/threading.py", line 946, in run | |
self._target(*self._args, **self._kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1458, in _run_handlers | |
handler() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 701, in _handle | |
result = handler(self) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/components.py", line 91, in lock_and_handle | |
return f(self, message) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 221, in handle | |
f(self, request) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/adapter/clients.py", line 563, in attach_request | |
raise request.cant_handle( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 525, in cant_handle | |
return self.error(MessageHandlingError, *args, **kwargs) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 513, in error | |
exc = exc_type(reason, self, silent) # will log it | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/messaging.py", line 1017, in __init__ | |
log.swallow_exception() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/common/log.py", line 215, in swallow_exception | |
_exception(format_string, *args, **kwargs) | |
D+00015.136: /handling #2 request "attach" from Client[1]/ | |
Client[1] <-- { | |
"seq": 7, | |
"type": "response", | |
"request_seq": 2, | |
"success": false, | |
"command": "attach", | |
"message": "Timed out waiting for debug server to connect." | |
} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.pydevd.527671.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
0.01s - Using Cython speedups | |
0.02s - Using GEVENT_SUPPORT: False | |
0.00s - Using GEVENT_SHOW_PAUSED_GREENLETS: False | |
0.00s - pydevd __file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd.py | |
0.00s - Using PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING: False | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Session[1]/debugpy.server-527671.log ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
I+00000.004: Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35 x86_64 | |
CPython 3.10.4 (64-bit) | |
debugpy 1.8.0 | |
I+00000.046: Initial environment: | |
System paths: | |
sys.executable: /home/toby/replit/debugpy/.tox/py310-cov/bin/python(/usr/bin/python3.10) | |
sys.prefix: /home/toby/replit/debugpy/.tox/py310-cov | |
sys.base_prefix: /usr | |
sys.real_prefix: <missing> | |
site.getsitepackages(): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3/dist-packages | |
/home/toby/replit/debugpy/.tox/py310-cov/local/lib/python3.10/dist-packages | |
site.getusersitepackages(): /home/toby/.local/lib/python3.10/site-packages | |
sys.path (site-packages): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('stdlib'): /usr/lib/python3.10 | |
sysconfig.get_path('platstdlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10 | |
sysconfig.get_path('purelib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('platlib'): /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages | |
sysconfig.get_path('include'): /usr/include/python3.10 | |
sysconfig.get_path('scripts'): /home/toby/replit/debugpy/.tox/py310-cov/bin | |
sysconfig.get_path('data'): /home/toby/replit/debugpy/.tox/py310-cov | |
os.__file__: /usr/lib/python3.10/os.py | |
threading.__file__: /usr/lib/python3.10/threading.py | |
debugpy.__file__: /home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/__init__.py(/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/__init__.py) | |
Installed packages: | |
importlib-metadata==6.8.0 | |
iniconfig==2.0.0 | |
sqlparse==0.4.4 | |
greenlet==2.0.2 | |
asgiref==3.7.2 | |
pytest==7.4.2 | |
zope.interface==6.0 | |
coverage==7.3.1 | |
pytest-xdist==3.3.1 | |
MarkupSafe==2.1.3 | |
Flask==2.3.3 | |
itsdangerous==2.1.2 | |
zipp==3.16.2 | |
psutil==5.9.5 | |
urllib3==2.0.4 | |
pytest-cov==4.1.0 | |
wheel==0.41.2 | |
click==8.1.7 | |
Werkzeug==2.3.7 | |
Jinja2==3.1.2 | |
debugpy==1.8.0 | |
pytest-timeout==2.1.0 | |
idna==3.4 | |
typing_extensions==4.8.0 | |
Django==4.2.5 | |
pluggy==1.3.0 | |
packaging==23.1 | |
gevent==23.9.1 | |
tomli==2.0.1 | |
execnet==2.0.2 | |
zope.event==5.0 | |
setuptools==68.2.0 | |
certifi==2023.7.22 | |
blinker==1.6.2 | |
charset-normalizer==3.2.0 | |
requests==2.31.0 | |
exceptiongroup==1.1.3 | |
pip==23.2.1 | |
I+00000.046: sys.argv before parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy', '--connect', '127.0.0.1:56223', '--adapter-access-token', '4bd7e665b055b7cb7775e7fb57d6c05c689710781edce632e3755a385f5b2d28', '--pid', '527622'] | |
after parsing: ['/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy'] | |
I+00000.046: Attaching to process with PID=527622 | |
I+00000.046: Code to be injected: | |
import codecs; | |
import json; | |
import sys; | |
decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None; | |
script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]); | |
setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125])); | |
sys.path.insert(0, script_dir); | |
import attach_pid_injected; | |
del sys.path[0]; | |
attach_pid_injected.attach(setup); | |
I+00000.047: Injecting code into process with PID=527622 ... | |
E+00000.109: Code injection into PID=527622 failed: | |
Traceback (most recent call last): | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 391, in attach_to_pid | |
add_code_to_python_process.run_python_code( | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py", line 471, in run_python_code_linux | |
subprocess.check_call(' '.join(cmd), shell=True, env=env) | |
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call | |
raise CalledProcessError(retcode, cmd) | |
subprocess.CalledProcessError: Command 'gdb --nw --nh --nx --pid 527622 --batch --eval-command='set scheduler-locking off' --eval-command='set architecture auto' --eval-command='call (void*)dlopen("/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so", 2)' --eval-command='sharedlibrary attach_linux_amd64' --eval-command='call (int)DoAttach(0, "import codecs;import json;import sys;decode = lambda s: codecs.utf_8_decode(bytearray(s))[0] if s is not None else None;script_dir = decode([47, 104, 111, 109, 101, 47, 116, 111, 98, 121, 47, 114, 101, 112, 108, 105, 116, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 116, 111, 120, 47, 112, 121, 51, 49, 48, 45, 99, 111, 118, 47, 108, 105, 98, 47, 112, 121, 116, 104, 111, 110, 51, 46, 49, 48, 47, 115, 105, 116, 101, 45, 112, 97, 99, 107, 97, 103, 101, 115, 47, 100, 101, 98, 117, 103, 112, 121, 47, 97, 100, 97, 112, 116, 101, 114, 47, 46, 46, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 46, 46, 47, 100, 101, 98, 117, 103, 112, 121, 47, 115, 101, 114, 118, 101, 114]);setup = json.loads(decode([123, 34, 109, 111, 100, 101, 34, 58, 32, 34, 99, 111, 110, 110, 101, 99, 116, 34, 44, 32, 34, 97, 100, 100, 114, 101, 115, 115, 34, 58, 32, 91, 34, 49, 50, 55, 46, 48, 46, 48, 46, 49, 34, 44, 32, 53, 54, 50, 50, 51, 93, 44, 32, 34, 119, 97, 105, 116, 95, 102, 111, 114, 95, 99, 108, 105, 101, 110, 116, 34, 58, 32, 102, 97, 108, 115, 101, 44, 32, 34, 108, 111, 103, 95, 116, 111, 34, 58, 32, 110, 117, 108, 108, 44, 32, 34, 97, 100, 97, 112, 116, 101, 114, 95, 97, 99, 99, 101, 115, 115, 95, 116, 111, 107, 101, 110, 34, 58, 32, 34, 52, 98, 100, 55, 101, 54, 54, 53, 98, 48, 53, 53, 98, 55, 99, 98, 55, 55, 55, 53, 101, 55, 102, 98, 53, 55, 100, 54, 99, 48, 53, 99, 54, 56, 57, 55, 49, 48, 55, 56, 49, 101, 100, 99, 101, 54, 51, 50, 101, 51, 55, 53, 53, 97, 51, 56, 53, 102, 53, 98, 50, 100, 50, 56, 34, 125]));sys.path.insert(0, script_dir);import attach_pid_injected;del sys.path[0];attach_pid_injected.attach(setup);", 0)'' returned non-zero exit status 1. | |
Stack where logged: | |
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/__main__.py", line 39, in <module> | |
cli.main() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 430, in main | |
run() | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/server/cli.py", line 398, in attach_to_pid | |
log.reraise_exception("Code injection into PID={0} failed:", pid) | |
File "/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/debugpy/adapter/../../debugpy/../debugpy/common/log.py", line 222, in reraise_exception | |
_exception(format_string, *args, **kwargs) | |
I+00000.109: Not logging to "<stderr>" anymore. | |
I+15.402: Not logging to "/home/toby/replit/debugpy/tests/_logs/3.10-64/tests/debugpy/test_run.py/test_frame_eval[yes-program-attach_pid]/tests-484859.log" anymore. | |
=========================================================== warnings summary ============================================================ | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252 | |
/home/toby/replit/debugpy/.tox/py310-cov/lib/python3.10/site-packages/xdist/plugin.py:252: DeprecationWarning: The --rsyncdir command line argument and rsyncdirs config variable are deprecated. | |
The rsync feature will be removed in pytest-xdist 4.0. | |
config.issue_config_time_warning(warning, 2) | |
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html | |
---------- coverage: platform linux, python 3.10.4-final-0 ----------- | |
======================================================== short test summary info ======================================================== | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero-uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0--uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero---attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_attach.py::test_attach_pid_client[program-int] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero-uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0--uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_args.py::test_args[attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero---attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_attach.py::test_attach_pid_client[program-str] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_args.py::test_args[attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero-uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0----attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_args.py::test_args[attach_pid-code] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0---raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero---attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0--uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero-uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1---raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0----attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0---raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero---attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0--uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1---raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero-uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan--uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero--raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero-uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero-uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan---raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan--uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1--uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[0-zero--raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django-break_on_system_exit_zero-0-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1----attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero-uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan---raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1--uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django-break_on_system_exit_zero-0-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1----attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django--0-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero--raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan--uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django--0-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero--raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero-uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan----attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan--uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1--uncaught--attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django-break_on_system_exit_zero-3-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero-uncaught-raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero-uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan----attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1--uncaught--attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django-break_on_system_exit_zero-3-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero-uncaught-raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django--3-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero---attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[django--3-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[nan-zero---attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero--raised-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[-break_on_system_exit_zero-3-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_systemexit[1-zero--raised-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_log.py::test_log_dir_env[program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_input.py::test_input[program-redirect_output-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[--3-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[-break_on_system_exit_zero-3-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[-break_on_system_exit_zero-0-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_input.py::test_stdin_not_patched[program--attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[--3-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
I+00.173: debugpy and pydevd logs will be under /home/toby/replit/debugpy/tests/_logs/3.10-64 | |
FAILED tests/debugpy/test_log.py::test_log_dir_env[module-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[-break_on_system_exit_zero-0-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_input.py::test_stdin_not_patched[program-redirect_output-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[--0-attach_pid-program] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_log.py::test_log_dir_env[code-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_output.py::test_redirect_output[program-enabled-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_output.py::test_with_no_output[program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_exception.py::test_success_exitcodes[--0-attach_pid-module] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_input.py::test_input[program--attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_run[code-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_run[program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_output.py::test_redirect_output[program-disabled-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_run[module-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[-module-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[-code-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[-program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[yes-code-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[yes-module-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[no-program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[no-module-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[no-code-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
FAILED tests/debugpy/test_run.py::test_frame_eval[yes-program-attach_pid] - debugpy.common.messaging.MessageHandlingError: Timed out waiting for debug server to connect. | |
================================== 91 failed, 1113 passed, 14 skipped, 9 warnings in 360.43s (0:06:00) ================================== | |
py310-cov: exit 1 (360.94 seconds) /home/toby/replit/debugpy> python -Xfrozen_modules=off -m pytest --cov --cov-append --cov-config=.coveragerc pid=484843 | |
py310-cov: FAIL ✖ in 6 minutes 30.15 seconds | |
py311: skipped because could not find python interpreter with spec(s): py311 | |
py311: SKIP ⚠ in 0 seconds | |
py311-cov: skipped because could not find python interpreter with spec(s): py311 | |
py311-cov: SKIP ⚠ in 0 seconds | |
py312: skipped because could not find python interpreter with spec(s): py312 | |
py312: SKIP ⚠ in 0 seconds | |
py312-cov: skipped because could not find python interpreter with spec(s): py312 | |
.pkg: _exit> python /home/toby/replit/debugpy/venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta | |
py38: SKIP (0.10 seconds) | |
py38-cov: SKIP (0.00 seconds) | |
py39: FAIL code 1 (0.64 seconds) | |
py39-cov: FAIL code 1 (0.48 seconds) | |
py310: FAIL code 1 (398.17=setup[55.47]+cmd[342.70] seconds) | |
py310-cov: FAIL code 1 (390.15=setup[29.21]+cmd[360.94] seconds) | |
py311: SKIP (0.00 seconds) | |
py311-cov: SKIP (0.00 seconds) | |
py312: SKIP (0.00 seconds) | |
py312-cov: SKIP (0.03 seconds) | |
evaluation failed :( (789.61 seconds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment