[Visualpython-discuss] RE: Are exceptions handled/shown in Visual Python?
by Taylor Brown other posts by this author
Mar 22 2005 9:11AM messages near this date
view in the new Beta List Site
[Visualpython-discuss] Is Visual Python out of beta status?
|
[Visualpython-discuss] Are exceptions handled/shown in Visual Python?
As it turns out, they are shown, but only on two conditions:
1) You have unchecked "Run in Shell window" in the sln properties.
2) You never do the following: "sys.stderr = sys.stdout"
The first one, I understand, but the 2nd one seems like a very common
way of capturing all error output. After I execute that line, I can get
_nothing_ in my run output. (Not even normal print statements). This
means that I also don't see exception output. Has anyone else seen this
behavior?
Cheers,
Taylor
________________________________
From: Taylor Brown
Sent: Monday, March 21, 2005 5:59 PM
To: 'visualpython-discuss@listserv.ActiveState.com'
Subject: Are exceptions handled/shown in Visual Python?
In my experiences with debugging in Visual Python, I have only seen it
fail silently when a Python exception is thrown. Is this
normal/expected behavior? I would expect that it would at least print a
warning for me, and even better, would stop execution so that I could
examine what's going on (like WingIDE for example). I feel like I'm
missing something obvious, but searches through the docs have not
yielded anything useful.
Any help would be greatly appreciated.
Many thanks,
Taylor
Attachments:
unknown1
unknown2
unknown3
unknown4
|