python - How to skip over line throwing exception when debugging -


# process_with_huge_time_overhead() list_a = [1,2,3] print(list_a[3]) # process_with_huge_time_overhead() new_data = [5,6,7] list_a += new_data 

after reaching line in ipdb (invoked via python -m ipdb script.py), exception thrown: indexerror enter image description here

how can 1 continue debug , jump around without going through overhead of getting point again?

if jump line 62 , use n command execute next line, doesn't work. every n continues exit program.

enter image description here

you cannot without changing program.

the debugger follows code execution. if error thrown, debugger continue following programs flow of error handling. if error not handled you, crash issued. expected behavior , debugger follow it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -