1

Is there any way to see content of an array in a java program while program is running in debug mode? I mean just like scripting languages. I put a break point after the line of code that changed an array content, now haw can i see the content of the array? I use eclipse as IDE. thanks

1
  • Use the variable window in eclipse during debug mode Commented Aug 26, 2018 at 10:57

2 Answers 2

1

Once you are in the debug mode and once you reach the code line with the array right click on the array name and choose inspect. it will show you the value.if the value shown in inspect is not the expected value then simply step to the next code line and inspect the array name again.

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

Comments

0

Yes definitely. Use "Debug" icon in the toolbar and run your program and switch to debug perspective and use the variable window to check the array value.

enter image description here

1 Comment

My impression is that OP already knows about debug mode. The question is not how to start the debug mode, the question is how to see the array. If you exchange the screenshot by something more relevant, the answer would be much better.

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.