JVM Debugger Memory View for IntelliJ IDEA
JetBrains introduces a new plugin to extend the built-in debugger in IntelliJ IDEA.
Join the DZone community and get the full member experience.Join For Free
Every day we try to find new ways to improve developer experience with IntelliJ IDEA. It may be a bugfix, a performance improvement, or a new feature (usually in this order). Today we’d like to introduce a new plugin called JVM Debugger Memory View.
The plugin extends the built-in debugger with capabilities to explore objects in the JVM heap during a debug session. The Memory View shows you the total number of objects in the heap grouped by their class name.
When you’re stepping over the code, the Diff column shows how the number of objects changes between debugger stops. This way you can easily see how the code you’re stepping over affects the heap.
A double click on a class name, opens a dialog with instances of this class.
The dialog lets you filter instances by an evaluated expression. All debugger operations such as Inspect, Mark Object, Evaluate Expression, Add to Watches, etc can be applied to instances in this dialog.
To install the plugin, open Settings → Plugins, click Install JetBrains plugin and search for “JVM Debugger Memory View”.
Found a bug or miss a feature? Your feedback is very welcome in the issue tracker.
Develop with Pleasure!
Published at DZone with permission of Andrey Cheptsov, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.