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.
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.
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).
Creating a watch that calls toString() method do the trick. It can also be displayed in the variable panel.