vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Flickering while debugging java

Open theinfinull opened this issue 1 year ago • 16 comments

Type: Bug

while debugging the code flickers making it difficult to debug.

Extension version: 0.57.0 VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info
Item Value
CPUs AMD Ryzen 7 5800H with Radeon Graphics (16 x 3194)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.41GB (8.59GB free)
Process Argv --crash-reporter-id 8e6a0053-0385-467e-9abf-b3e49c5c6d25
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
jchc7451:30973076
gee8j676:31009558
dsvsc021:30996838
01bff139:31013167

theinfinull avatar Apr 18 '24 15:04 theinfinull

I've encountered this problem too, is there any solution?

hfghgakjd avatar Apr 19 '24 08:04 hfghgakjd

pls give more details about what the problem is. It's better to share some reproduce steps.

testforstephen avatar Apr 19 '24 09:04 testforstephen

I've encountered this while remote debugging. The values that show inline constantly appear and disappear, which makes it very difficult to debug. It has only started recently.

caymaynard avatar Apr 21 '24 23:04 caymaynard

I'm experiencing the same problem with inline variable flickering. It occurs in Java but works in JavaScript. As a workaround, I set "debug.inlineValues": "off".

davidnussio avatar Apr 23 '24 14:04 davidnussio

I'm facing the same issue, particularly when the debugger runs on instruction that has a Scanner object, especially after prompting the user to input data which was not the case before. It does make debugging very difficult.

alfahami avatar Apr 23 '24 16:04 alfahami

I'm experiencing the same problem with inline variable flickering. It occurs in Java but works in JavaScript. As a workaround, I set "debug.inlineValues": "off".

Thank you. It indeed worked.

alfahami avatar Apr 23 '24 16:04 alfahami

Running into the same problem here. Must have happen with a recent update. Thanks @davidnussio , workaround fixed the issue. "debug.inlineValues": "off"

Tonio101 avatar Apr 26 '24 20:04 Tonio101

Steps to reproduce: Run debugger for a Java program. I've noticed that this only happens if the window/panel is small for the debug inline text. Try splitting into at least 2 editors and run debugger. You'll see it flickering making it extremely difficult to view and debug.

Tonio101 avatar Apr 27 '24 06:04 Tonio101

Remove the following from your settings : "editor.wordWrap": "on" this will fix the issue

maratib avatar Apr 30 '24 23:04 maratib

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar May 05 '24 00:05 github-actions[bot]

Video is welcome to show what the problem is.

testforstephen avatar May 06 '24 06:05 testforstephen

Remove the following from your settings : "editor.wordWrap": "on" this will fix the issue

@maratib workaround is better because is simple to enable/disable with shortcut.

@testforstephen

  1. start debugging
  2. then shrink the window until the text wraps.
  3. inlineValues starts to flickering

davidnussio avatar May 06 '24 13:05 davidnussio

I did the screen recording that was requested:

https://github.com/microsoft/vscode-java-debug/assets/7119865/e9da1696-0a45-465a-89ed-59a4f926a78d

@testforstephen Steps to reproduce are as @davidnussio said.

khe817 avatar May 06 '24 13:05 khe817

@davidnussio and @khe817, thank you for sharing the reproducing steps. My machine has the setting disabled "editor.wordWrap": "off, that's why I don't reproduce it. When I change it to "editor.wordWrap": "on", I can reproduce it now.

testforstephen avatar May 07 '24 01:05 testforstephen

Opened an issue at VS Code https://github.com/microsoft/vscode/issues/212142

testforstephen avatar May 07 '24 03:05 testforstephen

Same here

jaysonsosweet avatar May 31 '24 16:05 jaysonsosweet

this has been fixed in the latest vscode version. At least, I cannot reproduce it in [email protected].

testforstephen avatar Jul 18 '24 01:07 testforstephen