2

Is there any way to insert pdb breakpoint on all functions inside a python file like gdb?

$  python3 -m pdb  gen_graph.py /vagrant/gdb.log
> /home/vagrant/dwnlds/gdb_graphs/gen_graph.py(11)<module>()
-> import os
(Pdb) rbreak ?
*** SyntaxError: invalid syntax
(Pdb) b gen_graph.py:*
*** Bad lineno: *
(Pdb) b gen_graph.py:.
*** Bad lineno: .
(Pdb) b gen_graph.py:all
*** Bad lineno: all
(Pdb) 

Or, is there anyway to list all function names (symbols) within a python file name?

brokenfoot
  • 11,083
  • 10
  • 59
  • 80

0 Answers0