From f0485de43ad7403bb74824f445d2cf1f3d192904 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Apr 2025 20:13:47 +0200 Subject: gh-132950: Log is_remote_debug_enabled() in pythoninfo (#132965) Log also the Py_REMOTE_DEBUG macro. --- Lib/test/pythoninfo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 195551e..682815c 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 @@ -528,6 +530,7 @@ def collect_sysconfig(info_add): 'Py_DEBUG', 'Py_ENABLE_SHARED', 'Py_GIL_DISABLED', + 'Py_REMOTE_DEBUG', 'SHELL', 'SOABI', 'TEST_MODULES', -- cgit v0.12