You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm debugging a python program with debugpy.
When evaluation an expression (using dapui.eval) that changes a value, the evaluation is done twice.
This does not happen with the dap repl window.
Execute :lua require('dapui').eval("a.append(2)") on breakpoint
Step next
a is now [1,2,2] instead of [1,2]
Note: Initially, I tried the built in expression (watches) element. But since all the expressions there are recomputed on refresh, the change would be executed all the time, too (which is probably not fixable). Instead, I created a separate keybinding for executing expressions without displaying them in the expressions window.
Thanks for the report, this should now be working as expected 😄 As you said this is not fixable for watches. Really the hover shouldn't have any side effects but of course that's easier said than done for a debugger
I'm debugging a python program with debugpy.
When evaluation an expression (using
dapui.eval
) that changes a value, the evaluation is done twice.This does not happen with the dap repl window.
Steps to reproduce:
[1]
:lua require('dapui').eval("a.append(2)")
on breakpointa
is now[1,2,2]
instead of[1,2]
Note: Initially, I tried the built in expression (watches) element. But since all the expressions there are recomputed on refresh, the change would be executed all the time, too (which is probably not fixable). Instead, I created a separate keybinding for executing expressions without displaying them in the expressions window.
The text was updated successfully, but these errors were encountered: