Pull line_num code from parse.py to dbg.py.