Search code examples
intellij-ideabreakpointsjetbrains-ide

How to know instance id in Idea in breakpoints section?


Read https://www.jetbrains.com/help/idea/2016.2/configuring-breakpoints.html

To limit breakpoint hits only with particular object instances using instance IDs, check the Instance filters option and type the instance ID value, or click the ellipsis button and specify instance ID in the Instance Filters dialog.

How do i get an instance id ? Where should i look ?


Solution

  • Look at the Variables view in Debug tab.

    Debugger variables view

    The instance id is the number after the variable. So given variable f1={Foo@432} the instance id of f1 is 432.