From 0c42122cbbfc0d222528f66c6b76ef3930164bf7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Apr 2025 19:43:15 +0200 Subject: [PATCH 1/2] gh-132950: Log is_remote_debug_enabled() in pythoninfo --- Lib/test/pythoninfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 195551e7422896..e157d616e59634 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -146,6 +146,8 @@ def collect_sys(info_add): text = 'No (sys.getobjects() missing)' info_add('build.Py_TRACE_REFS', text) + info_add('sys.is_remote_debug_enabled', sys.is_remote_debug_enabled()) + def collect_platform(info_add): import platform From bb208d5ee5d4e2c28dfa37386da3ec8b96ef0767 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Apr 2025 19:49:08 +0200 Subject: [PATCH 2/2] Log alog Py_REMOTE_DEBUG macro --- Lib/test/pythoninfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index e157d616e59634..682815c3fdd6e0 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -530,6 +530,7 @@ def collect_sysconfig(info_add): 'Py_DEBUG', 'Py_ENABLE_SHARED', 'Py_GIL_DISABLED', + 'Py_REMOTE_DEBUG', 'SHELL', 'SOABI', 'TEST_MODULES',