When I use Pycharm's debugger and I inspect a dictionary in the debug window, if there are characters in the dictionary which are somewhat unusual, (Greek, for example), sometimes the debugger will crash, yielding the following error message:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 1023: unexpected end of data
From my research I've learned that possible the cause is that the characters use a lot of memory and pycharm sets a limit which is 1024 bytes. i've tried to increase the byte length with the following hack:
os.environ['PYDEVD_MAX_STRING_LENGTH'] = 70_000
try:
import pydevd
pydevd.MAX_STRING_LENGTH = 30000
except ImportError:
p ('debugger not attached')
pass # Debugger isn't attached yet
But I'm still getting the same error. I've been suffering from this error now for about 2 years and have contacted Pycharm numerous times about it and they are aware of it but they don't care about the issue.