How to debug only part of the code in Pycharm

My current script read in a large data set at the beginning of the script. How to debug(step through) only part of the script without reading the data again and again every time?

If I comment out the data reading part, the rest of program won't run because the variables read from data file have not been defined.

I want "Ctrl+enter" in R-Studio : select couple of lines and run to see results

1 comment
Comment actions Permalink
Official comment

Hi! Thank you for the feedback! At the moment it isn't possible to do it in PyCharm, but there is a similar feature request in our tracker: https://youtrack.jetbrains.com/issue/PY-19692

Please sign in to leave a comment.