Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run code snippet while debugging in Intellij

I am debugging a java program and stopped at a breakpoint. There is a variable of list of 800 elements. Intellij only shows me the first 100. I wonder if I could execute some code at this point to inspect the elements? The "Evaluate Expression" functionality only allows me to run one line at a time. Thanks

like image 605
sxy Avatar asked Jul 23 '14 22:07

sxy


1 Answers

The number of available elements can be set, see link

Just start Evaluate expression and you can change to code fragment mode

like image 114
HamoriZ Avatar answered Oct 23 '22 10:10

HamoriZ