pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Watch expressions should stay after restart

Open asmeurer opened this issue 13 years ago • 7 comments

If you continue to the bottom of the script and restart, any watch expressions that you setup are deleted.

asmeurer avatar Mar 12 '13 23:03 asmeurer

:+1:

inducer avatar Mar 13 '13 02:03 inducer

It would be helpful if the watch expressions could be saved across sessions too. After I make changes to my code, I shutdown pudb and restart it to pick up code changes; however, I have to enter all of my watch-expressions again, which is very tedious, since I must do this for each frame. ... Thanks! ... BTW, this package is extremely helpful to me! ... Thanks for the great work!

m27315 avatar May 27 '14 19:05 m27315

Unless the code is architectured weird (which is another way of saying that I haven't looked at it), it is probably easy to fix.

asmeurer avatar May 27 '14 20:05 asmeurer

I am also interested in this feature. Can someone experienced give pointers what needs to be done to implement this? I might give it a shot.

raphCode avatar Apr 05 '23 07:04 raphCode

Take a look at how breakpoints are saved. We would probably want to do something similar.

asmeurer avatar Apr 05 '23 15:04 asmeurer

There was the PR #146 I submitted awhile ago. You can take code from it.

lechat avatar Apr 10 '23 15:04 lechat

I'm still hoping to get #525 merged through at some point too, if saving watches could work alongside that idea, that would be sublime!

mvanderkamp avatar Apr 11 '23 06:04 mvanderkamp