how to get the current line number in pdb python code example Example: debugging python import ipdb; ipdb.set_trace()