1

Suppose we are in a middle of debugging a application and you have a linkedlist, hashmap or other collection framework implementation with 1000 of items. Is there a possibility to inspect the list or map over a given item while debugging and not programmatically ? Suppose we are using eclipse as a ide.

1
  • 4
    While debugging, select the variable and press Ctrl+Shift+I, it's the same procedure for variables of any type. Commented Nov 12, 2012 at 11:59

1 Answer 1

6

In your Debug perspective

There is Variables view , where you can see inner structure and elements of every object in current context.

In Expressions view you can add custom one-line expression to get any result.

Maybe, Display view will be useful, where you can execute set of Java expressions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.