serhii.net

In the middle of the desert you can say anything you want

13 Jul 2021

Day 924

Pycharm/intellij debugging adding watchers

You can add things like someObject.someFunction() and basically any python code there! And it starts getting evaluated immediately after adding, even without stepping through or anything similar! This will save me a lot of “Eval code” - whose last remaining purpose can then be .. is “exploratory debugging” a thing?

Pycharm/intellij “Go back”

There’s a “Go back” action, <C-A-Left> is the default mapping on my installation - does what it says on the box. Handy for going back after looking at the implementation of something etc etc etc. Can’t find it in the ideavim actionlist though :( Though found <C-O> to jump to the last edited line which is very handy too:

 * |CTRL-O|               {@link com.maddyhome.idea.vim.action.motion.mark.MotionJumpPreviousAction}

Life keeps telling me to learn the tools I use daily, to read the entire help/manual etc - maybe one day I’ll learn to do this.

Pycharm / intellij refactoring

If you refactor a loop variable, such as for t in ..., if you choose to replace strings in comments, it might replace that letter outside tokens - the “t” in “won’t”, for example. (Not that clicking “Refactor” without looking at the suggestions is ever a good idea).

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus