Например:
Код: Выделить всё
Traceback (most recent call last):
File "c:\Users\james\Desktop\mylibrary\testing.py", line 16, in
'the library user doing absolute shit'
File "c:\Users\james\Desktop\mylibrary\mylibrary\__init__.py", line 100, in function_name
else: raise errors.myerror('Text about my custom error')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
errors.myerror: Text about my custom error
Код: Выделить всё
Run Without DebuggingКод: Выделить всё
Traceback (most recent call last):
File "c:\Users\james\Desktop\mylibrary\testing.py", line 16, in
'the library user doing absolute shit'
errors.myerror: Text about my custom error
Код: Выделить всё
Start DebuggingСпасибо!
Подробнее здесь: https://stackoverflow.com/questions/790 ... e-debugger