mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
PY-38378 PY-38424 Fix updating variables in debugger console
We now access the `frame.f_locals` attribute only once. Multiple access leads to the loss of the changes we have made. We also alter the second argument of the `PyFrame_LocalsToFast()` to 1 to ensure that all the deleted variables will be wiped out from the frame locals. (cherry picked from commit 28abff39b2c37f30651db220e8700032a629ce73) GitOrigin-RevId: 8514da7ec187c1192ea9cdf851f89f008242fc30
This commit is contained in:
committed by
intellij-monorepo-bot
parent
40ac8526c3
commit
eb956ca29d
15
python/testData/debug/test_update_series_in_debug_console.py
Normal file
15
python/testData/debug/test_update_series_in_debug_console.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import pandas as pd
|
||||
|
||||
|
||||
class C:
|
||||
@staticmethod
|
||||
def f():
|
||||
|
||||
def g():
|
||||
return pd.Series(index=[40, 50, 60], data=[1, 2, 3])
|
||||
|
||||
a = g()
|
||||
a # breakpoint
|
||||
|
||||
|
||||
C.f()
|
||||
Reference in New Issue
Block a user