0

I'm running the following code in Google Collab (and on Kaggle Notebook). When running it without pdb.set_trace(), everything works fine.

However, when using pdb.set_trace() and calling "continue/exit", it seems that the array is still stored in memory (memory consumption remains high, by the same size as the array).

from pdb import set_trace # also tried ipdb, IPython.core.debugger

def ccc():
    aaa = list(range(50000000))
    set_trace()

ccc()

Any ideas?

Thanks in advance.

EDIT

This also occurs when stopping the code execution manually (i.e., KeyboardInterrupt).

Ben Lahav
  • 73
  • 7

0 Answers0