-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The representation of a variable introspected in the Debug Console can be clipped on VSCode. #162965
Comments
This seems like a layout issue in the debug console in VSCode itself. At least I cannot reproduce it here (see image below). @zljubisic can you provide the logs for your use case when you execute those in your version just so that I'm sure that this is the case? See: https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs for details on how to collect the logs. @karthiknadig if this turns out being an issue in VSCode, can we move the ticket to the VSCode repository or should a new issue be created (maybe just referencing this one)? |
@fabioz I can move it into the vscode repo, if this turns out to be a vscode issue. |
Reported problem has happened on my business computer. Now, I have created a new python project on my personal computer in which I have put what I usually put in my business projects (I know it is not the same but on my business computer I cannot provide a log file). I cannot provoke an error with pandas dataframe, but if I print the same line several times, I get different line spacing. Please look at the picture. I am just pressing up arrow, than enter all the time. Output sometimes has a single blank line, sometimes more than one blank line. When I experience the error on my business computer, while I am in debug console, how can I collect an environment, settings and everything else that I an compare with debug console environment, settings... on my personal computer? |
Furthermore how come that pandas options: doesn't make any difference? |
If you set it to |
@karthiknadig can you move this to VSCode? I'm confident that the original issue (where the last line of pandas isn't visible) is because VSCode itself is clipping the content, so, it's not fixable in @zljubisic please refer to microsoft/debugpy#1078 (and keep the discussion to that issue) for customization of pandas as this issue should be moved to the VSCode repo to fix the layout issue in the |
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
This issue may have been fixed in 1.72, please upgrade and let me know if you still see it |
I have upgraded to 1.72. Which test case you are interested in because I have created several of them. |
All of these cases with the end of the message clipped or missing - I'm expecting that to be fixed. |
That's a bit strange, I don't see that. Is there any chance that you are pressing enter multiple times while evaluating these statements? That will insert blank spaces. Pandas options are still covered by the above statement #162965 (comment) |
There is no chance that I am pressing enter (on mechanical) keyboard more than once. |
Do we have a plan with this issue? |
@roblourens one thing to note is that in this use case he has disabled word-wrap in the debug console -- and in microsoft/debugpy#1078 (comment) there are some other strange things in his use case. I've been able to reproduce getting different heights in this case (but I haven been able to reproduce the case where this makes a clip as in the report). |
Type: Bug
Please look at the picture:
In case you need it:
Extension version: 2022.14.0
VS Code version: Code 1.71.2 (74b1f97, 2022-09-14T21:03:37.738Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Sandboxed: No
Remote OS version: Linux x64 3.10.0-1127.el7.x86_64
The text was updated successfully, but these errors were encountered: