This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208048 - ability to dump the content of variable
Summary: ability to dump the content of variable
Status: RESOLVED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal with 3 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 15:24 UTC by romain_grecourt
Modified: 2012-02-09 13:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description romain_grecourt 2012-02-03 15:24:52 UTC
It would be nice to be able to dump the content of any variable when debugging under Netbeans.

Sometimes when you are searching for a specific value in a long map(i.e hundreds of entries) it can be very painfull.

For example being able to call the toString() method from the "variable" panel would be of help.
Comment 1 romain_grecourt 2012-02-07 14:55:21 UTC
For instance, there is in the variable panel the possibility to add  a column  to show the string representation of the object.
However for maps or collections it only shows the size: e.g. "size = 9".

Even If I created new formatters for Collection and Map interface, I can't add this view in a column of the variable panel. In the case where I have to deal with 500 entries in a Map, I would simply get the text content (+++ button) and see what I have (search for a specific entries for instance or have a quick overview of the content).
Comment 2 romain_grecourt 2012-02-09 13:00:35 UTC
Creating a watch that calls toString() method do the trick. It can also be displayed in the variable panel.