Message92389
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. |
|
Date |
User |
Action |
Args |
2009-09-07 20:10:30 | isandler | set | recipients:
+ isandler, smu |
2009-09-07 20:10:30 | isandler | set | messageid: <1252354230.59.0.513230889522.issue6719@psf.upfronthosting.co.za> |
2009-09-07 20:10:28 | isandler | link | issue6719 messages |
2009-09-07 20:10:28 | isandler | create | |
|