I'm starting to use IronPython and VS2010, and I'm having problems with the debugging environment ... can someone point me in the right direction? Please note that my knowledge of python is less than a week, so my problems may well be done by ourselves.
The most unpleasant problem is that when an exception occurs, the VS debugger does not interrupt where the exception occurred ... but rather, it breaks at the highest level. This makes finding out where the exception occurred the frustrating exercise of breakpointing and stepping.
Another annoyance is raising custom exceptions. The debugger tells me only the name of the exception class, not the message (but the original exceptions in python Russian include both). For instance:
class MyCustomError(BaseException):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
When raising (for example, "raise MyCustomError (" some nice message ")", all I see in the debugger for $ exception is "MyCustomError" .... when I really would like to see not only the class name but also value.
Any help would be appreciated!
source
share