We should be ready for the debugging session. First step is to get the debugger window open and start up python within it: $ ddd python When the ddd window opens, click in the bottom-most pane, and type run. When the interactive python interpreter starts up, import your module: (gdb) run >>> import foo >>> (press ESCAPE) (gdb) If you were able to load your module successfully in the previous step,