Skip to content

Commit 7e46d64

Browse files
committed
wip
1 parent 3030fa9 commit 7e46d64

36 files changed

+36589
-40472
lines changed

.github/workflows/pydevd-tests-python.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
"windows-py312-cython-checkbin",
2727
"ubuntu-py313-cython",
2828
"windows-py313-cython",
29+
"ubuntu-py314-cython",
30+
"windows-py314-cython",
2931
]
3032

3133
include:
@@ -74,6 +76,14 @@ jobs:
7476
python: "3.13"
7577
os: windows-latest
7678
PYDEVD_USE_CYTHON: YES
79+
- name: "ubuntu-py314-cython"
80+
python: "3.14-dev"
81+
os: ubuntu-20.04
82+
PYDEVD_USE_CYTHON: YES
83+
- name: "windows-py314-cython"
84+
python: "3.14-dev"
85+
os: windows-latest
86+
PYDEVD_USE_CYTHON: YES
7787

7888
steps:
7989
- uses: actions/checkout@v1

_pydev_bundle/pydev_is_thread_alive.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
# It is required to debug threads started by start_new_thread in Python 3.4
66
_temp = threading.Thread()
77

8-
if hasattr(_temp, "_handle") and hasattr(_temp, "_started"): # Python 3.13 and later has this
8+
if hasattr(_temp, "_os_thread_handle"): # Python 3.14 and later has this
9+
def is_thread_alive(t):
10+
return not t._os_thread_handle.is_done()
11+
12+
elif hasattr(_temp, "_handle") and hasattr(_temp, "_started"): # Python 3.13 and later has this
913

1014
def is_thread_alive(t):
1115
return not t._handle.is_done()

_pydev_bundle/pydev_monkey.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,9 @@ def patch_new_process_functions():
10221022
monkey_patch_os("spawnvpe", create_spawnve)
10231023
monkey_patch_os("posix_spawn", create_posix_spawn)
10241024

1025+
if not IS_WINDOWS:
1026+
monkey_patch_os("posix_spawnp", create_posix_spawn)
1027+
10251028
if not IS_JYTHON:
10261029
if not IS_WINDOWS:
10271030
monkey_patch_os("fork", create_fork)

_pydevd_bundle/pydevd_comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def internal_change_variable_json(py_db, request):
934934
)
935935
return
936936

937-
child_var = variable.change_variable(arguments.name, arguments.value, py_db, fmt=fmt)
937+
child_var = variable.change_variable(arguments.name, arguments.value, py_db, fmt=fmt, scope=scope)
938938

939939
if child_var is None:
940940
_write_variable_response(py_db, request, value="", success=False, message="Unable to change: %s." % (arguments.name,))

0 commit comments

Comments
 (0)