This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients xdegaye
Date 2012-05-25.11:35:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337945757.27.0.114974346451.issue14912@psf.upfronthosting.co.za>
In-reply-to
Content
In the following session, main.py is changed just before the restart
command. Pdb does not stop at Breakpoint 1 after the last continue.

$ python -m pdb main.py
> /path_to/main.py(1)<module>()
-> def foo():
(Pdb) import sys; print(sys.version)
3.2.2 (default, Dec 27 2011, 17:35:55) 
[GCC 4.3.2]
(Pdb) break foo
Breakpoint 1 at /path_to/main.py:1
(Pdb) list
  1 B-> def foo():
  2         x = 1
  3         x = 2
  4
  5     foo()
[EOF]
(Pdb) continue
> /path_to/main.py(2)foo()
-> x = 1
(Pdb) restart
Restarting main.py with arguments:
        main.py
> /path_to/main.py(1)<module>()
-> def bar():
(Pdb) list
  1 B-> def bar():
  2         x = 1
  3         x = 2
  4
  5     def foo():
  6         bar()
  7
  8     foo()
[EOF]
(Pdb) continue
The program finished and will be restarted
> /path_to/main.py(1)<module>()
-> def bar():
(Pdb)
History
Date User Action Args
2012-05-25 11:35:57xdegayesetrecipients: + xdegaye
2012-05-25 11:35:57xdegayesetmessageid: <1337945757.27.0.114974346451.issue14912@psf.upfronthosting.co.za>
2012-05-25 11:35:56xdegayelinkissue14912 messages
2012-05-25 11:35:56xdegayecreate