[ python-Bugs-875404 ] global stmt causes breakpoints to be ignored
SourceForge.net
noreply at sourceforge.net
Mon Jan 12 09:52:39 EST 2004
Bugs item #875404, was opened at 2004-01-12 14:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=875404&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Maciej Kalisiak (mackal)
Assigned to: Nobody/Anonymous (nobody)
Summary: global stmt causes breakpoints to be ignored
Initial Comment:
It seems that having a "global" statement in "main()"
(perhaps elsewhere too) causes pdb to ignore
breakpoints in the whole application. See the attached
example small program.
Procedure:
- pdb python_bug.py # the attached program
- 's', and then 'n' once or twice to make sure prog loaded
- 'break main'
- 'c'
If the "global foo" statement is present, pdb will not
stop at the breakpoint. If it is commented out (and
"foo = 1" as well, of course), the breakpoint is obeyed.
I'm using
Python 2.3 (from the Debian "sid" distribution)
Tried under Linux 2.2.20, as well as 2.4.*.
Maciej Kalisiak
mac at dgp dot toronto dot edu
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=875404&group_id=5470
More information about the Python-bugs-list
mailing list