pdb.cont save function