Add pdb trace for debugging