J'essaie de déboguer un module "main", qui appelle une fonction "broken_function" à la ligne 356 de "another_module". J'ai une erreur dans cette fonction et je veux placer un point d'arrêt à son début. Voici le listing. Est-ce que je fais quelque chose de mal ? Parce que le point d'arrêt ne fonctionne pas :
$ python -m pdb main
(Pdb) import sys
(Pdb) sys.path.append("/home/user/path/to/another/module")
(Pdb) import another_module
(Pdb) b another_module:356
Breakpoint 1 at /home/user/path/to/another/module/another_module.py:356
(Pdb) c
Traceback (most recent call last):
...
File "/home/user/path/to/another/module/another_module.py", line 383, in broken_function
f=open("../jobs/temptree.tre", "r")
IOError: [Errno 2] No such file or directory: '../jobs/temptree.tre'
Uncaught exception. Entering post mortem debugging
...