When Debug python code, Variables cannot be displayed completely.

已回答

Version: pycharm-2024.2.1

In pycharm-2024.1, Variables can be displayed completely, but it doesn't work in new version. How should I set pycharm?

Fig:

 

 

0

I seem to have the same issue after upgrading pycharm today - all string variables are truncated. This is very frustrating, I have to opt to old-fashioned ‘print’, it shouldn't be like this!

Version:

PyCharm 2024.2.1 (Community Edition)
Build #PC-242.21829.153, built on August 29, 2024
Runtime version: 21.0.3+13-b509.11 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-40-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 10240M
Cores: 20
Registry:
 debugger.new.tool.window.layout=true
 ide.experimental.ui=true
 i18n.locale=
Non-Bundled Plugins:
 org.jetbrains.plugins.gitlab (242.21829.162)
Current Desktop: ubuntu:GNOME
 

0

This is related to the following regression: https://youtrack.jetbrains.com/issue/PY-75568/Large-strings-truncated-when-displayed-in-debug-output-or-evaluate-windows-again

It will be fixed in the next major update.  Check the workaround in the comments for now.

We apologize for the inconvenience.

0

请先登录再写评论。