vscode-java-debug
vscode-java-debug copied to clipboard
Classes are not automatically imported in the "Debug Console"
When the code completion is used, classes are not automatically imported in the Debug Console:
Set.of(1, 2) Cannot evaluate because of compilation error(s): Set cannot be resolved.
Environment
- Operating System: linux
- JDK version: 19.0.1
- Visual Studio Code version: 1.72.2
- Java extension version: 0.25.3
- Java Debugger extension version: 0.45.0
Steps To Reproduce
-
Create a breakpoint in a Java class;
-
When the execution is suspended, open the Debug Console and try to create a Set (e.g.
Set.of(1, 2)
), using the code completion feature. The aforementioned error is shown.
Current Result
Set.of(1, 2) Cannot evaluate because of compilation error(s): Set cannot be resolved.
Expected Result
ImmutableCollections$Set12@287 size=2 0: Integer@276 1: Integer@277
Additional Informations
This functionality works out-of-the-box in IntelliJ IDEA. It would be nice to have it also in Visual Studio Code.