8000 Show toString() values in variables windows · Issue #315 · microsoft/vscode-java-debug · GitHub
[go: up one dir, main page]

Skip to content

Show toString() values in variables windows #315

@ivenxu

Description

@ivenxu

[Both in local variables and watch window, the debugger view shows the type of the complex object. It'll be really useful to show both type and toString() of the object]

Steps To Reproduce
  1. put the following code in a test class
public void testComplexTypeVariables() {
        String hello = "How are you.";
        Date now = new Date();
        assertNotEquals("not expected to be the same.", hello, now);
    }
  1. set break point on the assert line and start the debugger
  2. look at the variables window

image

Current Result

Showing Type only for complex object

Expected Result

to show both Type and toString() of the object. In the example, I expect to see ((now "2018-06-21 20:00:00.0" Date)) for the now variable.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0