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

[feature request] lazy load object variables while attach debug

Open nghduc97 opened this issue 6 years ago • 2 comments

In attach debug, if there are a lot of local variables containing array of objects, the extension fetch a deep copy back to the editor making each step very slow. IntelliJ run fast by only showing the variable's name and type and only fetch the content when I unfold it in watch panel. I would like to have this on the extension.

Environment
  • Operating System: Arch
  • JDK version: 9.0.4
  • Visual Studio Code version: 1.24.1
  • Java extension version: 0.26.0
  • Java Debugger extension version: 0.9.0

nghduc97 avatar Jun 17 '18 15:06 nghduc97

@testforstephen Could you help investigate this issue on the debug protocol?

yaohaizh avatar Jun 19 '18 02:06 yaohaizh

That is possibly caused by we hint vscode a cheap local scope https://github.com/Microsoft/java-debug/blob/master/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ScopesRequestHandler.java#L50

We can hint vscode expensive fetching on attach mode.

andxu avatar Jun 19 '18 02:06 andxu