String variable truncated in debugger
I'm using PyCharm 1.5.1 and when I view a long string in the Variables window it's truncated. If I "Inspect" it it's still truncated. If I copy the value it's still truncated. How do I see the full string?
Please sign in to leave a comment.
Hello evgeny0,
The workaround I have used to overcome the issue was to split the huge string into a list of smaller ones like this right in the PyCharm watches window:
[i.strip() for i in huge_string.split('\n')]
HTH
Thanks. I hope JetBrains can fix this properly, but this is a clever workaround.