Hi All,<div><br></div><div>I have asked this question before, but there were no answers then. I have several problems relating to Python in classic ASP using WSC's, but this one is the real showstopper for us.</div><div>
<br></div><div>When I use Python in a WSC and I instantiate that WSC in a classic ASP page, all works as expected, if the code inside the WSC is bug-free. However, if there is a bug in the Python code inside the WSC, IIS just gives me something like:</div>
<div><br></div><div><font size="2" face="Arial"><i>error '80020009'</i><font class="Apple-style-span" face="arial"><i><br></i></font></font><span class="Apple-style-span" style="font-family: Arial; "><i>Exception occurred.<br>
</i></span><font size="2" face="Arial"><i>/tools/python.asp</i></font><font size="2" face="Arial"><i>,
line 6</i></font><p>When I use vbscript in the WSC and there's a bug, Visual studio just pops up and lets me debug it. Not so with Python.</p><p>I have tried several routes, Googling (ofcourse), using win32traceutil (<i>print()</i> output appears in the trace collector, but an error doesn't, so stdout seems to work, and stderr doesn't ). I've also tried debugview from sysinternals, because I've read somewhere that that program can also show tracebacks, but in my case it shows nothing. I've enabled debugging in the WSC, in the registry for active scripting and in IIS for both client side as well as server side. I've also tried setting stderr to stdout and using trace collector.</p>
<p>I don't need a fancy solution, just a way to view the traceback somewhere. If anyone has a suggestion, even a far-fetched one, I'm willing to try it.</p><p>Thanks,</p><p>Erik</p></div>