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 isandler
Recipients isandler, smu
Date 2009-09-07.20:10:28
SpamBayes Score 4.681829e-07
Marked as misclassified No
Message-id <1252354230.59.0.513230889522.issue6719@psf.upfronthosting.co.za>
In-reply-to
Content
Here is what's happening: when pdb starts up it sets tracing and several
trace events happen before the pdb reaches the first line of the
debugged program. So, pdb has some logic to ignore certain events on
startup (_wait_for_main_pyfile).

On normal startup only "call" and "line"events need to be ignored and so
that's what pdb did. However, the "coding" directive causes some
additional code to get executed and results in "return" and "exception"
events.

I am attaching the patch to properly ignore irrelevant "return" and
"exception"events on startup. The patch fixes both the startup and the
exit problems.
History
Date User Action Args
2009-09-07 20:10:30isandlersetrecipients: + isandler, smu
2009-09-07 20:10:30isandlersetmessageid: <1252354230.59.0.513230889522.issue6719@psf.upfronthosting.co.za>
2009-09-07 20:10:28isandlerlinkissue6719 messages
2009-09-07 20:10:28isandlercreate