Skip to content

Remote debugging settings not working for Map/List visualization #4003

@Hendiaome

Description

@Hendiaome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions