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

Remote debugging settings not working for Map/List visualization

Open Hendiaome opened this issue 1 year ago • 0 comments

Title: [Bug] Remote debugging settings not working for Map/List visualization

Description: The debug settings for improving collection visualization (like showLogicalStructure and showToString) are not working in remote debugging mode.

Current behavior:

  • When debugging locally, the settings work fine
  • When debugging remotely, the Map/List variables are displayed in a basic format
  • The settings in launch.json and settings.json are not taking effect

Expected behavior:

  • Remote debugging should respect the same visualization settings as local debugging

  • Map/List variables should be displayed in a more readable format

  • Debug settings should work consistently across local and remote debugging

    "showLogicalStructure": true, "showToString": true


2. Start remote debugging
3. Try to inspect a Map or List variable
4. The variable is displayed in basic format, not respecting the settings



Impact:
- Makes debugging complex data structures more difficult
- Reduces debugging efficiency
- Inconsistent experience between local and remote debugging

Workaround:
Currently using Watch expressions or logging to view collection contents:
```java
stringStringMap.entrySet().stream()
    .map(e -> e.getKey() + "=" + e.getValue())
    .collect(java.util.stream.Collectors.joining(", ", "{", "}"))

Suggestion:

  1. Make remote debugging respect the same visualization settings as local debugging
  2. Add specific settings for remote debugging visualization
  3. Improve the default visualization of collections in remote debugging

Hendiaome avatar Apr 02 '25 02:04 Hendiaome