You can do this in the following ways.
Add a watchpoint and during debugging you can see the variable in perspective of the debugging debugging window under the tab of variables. OR Add System.out.println("variable = " + variable); and see the console.
Muhammad Imran Tariq Apr 14 2018-11-11T00: 00Z
source share