How do I run a Python script in gdb?

Use the “file” command . Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (test.py:3) pending. (gdb) run test.py Starting program: /usr/bin/python test.py … … and while the entire Python script does run within gdb , the breakpoint is simply never reached.14 Eyl 2011

Read more