Getting objects anywhere in Java using IntelliJ Idea
Lê Qu?c D?ng
?Backend Java Developer @ FPT Software | Database Developer | AWS Cloud Engineer
Introduction
Do you usually have a case to debug the value of objects located somewhere in your code but you don't have a breakpoint to reach these objects?
At this time the Memory debugger integrated into IntelliJ comes to rescue.
How can I use this feature?
It's straightforward you need to follow the following steps:
Step 1: Put a breakpoint somewhere in your code where you must guarantee the breakpoint will be hit.
Step 2: Open the memory view by choosing Memory of the bellow button
Step 3: Input the class you want to trace memory in the search bar then double-click to the class
At this point, you can do various things to the object like
Filter objects using expression in condition
We can use the navigate button to quickly navigate to the class using the object.
Senior Software Engineer at FPT Software
7 个月Insightful!
? .NET Backend Development
7 个月Love this
? Backend Developer
7 个月thanks for sharing!