Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In eclipse for java Is there anything like Visual Studio Custom Debugger Visualizers

The ability to create custom debug visualizers for any .Net type in Visual studio is an interesting feature. Is there anything similar in eclipse for java objects?

like image 696
jumar Avatar asked Jun 21 '26 15:06

jumar


1 Answers

I haven't investigated VS debug visualizers enough to know whether it's an exact correspondence, but Eclipse does let you convert instances of given types into strings in a specified way for the sake of debugging.

See Preferences -> Java/Debug/Detail Formatters.

Here's a blog post giving a walkthrough of an example. (There are plenty of others - a search for Eclipse and "detail formatters" will find loads. This one looked reasonable though.)

There's also the "Logical Structures" option in the same menu, and another blog post (the second part of the earlier one actually) with another example.

Edit 6.2 2012: Changed links to use archive since originals are no longer available.

like image 187
Jon Skeet Avatar answered Jun 24 '26 05:06

Jon Skeet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!