I decided to use a tool called pysnooper to get used to how to avoid placing print when debugging
I output the text of the log in the description, but when I open it with vim, it displays something difficult to read mixed with the color specification method seen in bash etc.
There is no particular explanation, and I don’t know how to display this, what should I do?
The output is colored for easy viewing by default, except on Windows. Disable colors like so:
So by adding a color=False argument, you can have it put plain text into the file without those colour codes.
For the record, the codes follow a very old (and widely implemented) standard:
But, yes, vim will not interpret that, because it’s designed to show you what the file contains (although still mainly interpreting it as text, not like a hex editor). So just ask for the plain output.