Debug view and string escaping

Answered

Hello,

the debug view is very convenient and I also use it for copying current variable values and paste them somewhere else. Unfortunately, the debug view seems to always escape strings and it does the escaping in its own way. I noticed this when writing some Python code, I guess the debugger escapes independently of the used language?

Have a look at this minimal example string:

'The apostroph\'s friend \*/'

This is the expected output:

>>> print('The apostroph\'s friend \*/')
The apostroph's friend \*/

The debugger prints this:

'The apostroph\\'s friend \\*/'

Here is a screenshot:

Is there a way to turn this escaping off completely for the debugger?

0
1 comment

Hi! It's a known problem, please, follow the issue for updates: https://youtrack.jetbrains.com/issue/PY-16583

0

Please sign in to leave a comment.