sxy
sxy

Reputation: 317

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

Upvotes: 8

Views: 13044

Answers (1)

HamoriZ
HamoriZ

Reputation: 2438

The number of available elements can be set, see link

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

Upvotes: 8

Related Questions