2

I debug a simple java application on Eclipse in debug as and step into java resource bundle which got interrupted exception in line construction.getCause

How do I trace each variable and express to see the values from java library? In j2ee, I can point mice at params, vars and assigned value from express, how do I see it in java application?

Why it cannot find the resource MyBundle base for MyBundle_zh.properties under project src?

Screen shot: https://plus.google.com/collection/UFuOlB https://lh3.googleusercontent.com/ibrMgi8udPlaAIvyvPKc4tE5Agw5SzXxi5yp0a3yZJA5zNkYymSPgFHUEsO_tD2HsDMUZzE2=w640-h360-p-rw Thanksenter image description here

2
  • 2
    Why take a low quality smartphone photo and transfer that from your phone to your pc, if you can just press the PRINT SCREEN button (Prt Scr) on your keyboard and get a high quality screenshot? Commented Dec 5, 2016 at 7:53
  • Load from app, can't delete, find the link or google plus my collections Commented Dec 5, 2016 at 20:08

2 Answers 2

6

Eclipse has different Perspectives, you can switch them from Window -> Show Perspective. Each Perspective can have a different set of views. In you case, make sure that you have the Debug Perspective open and then (if you don't have it there already) do:

Window -> Show View -> Variables

Then, when your execution stops on a set breakpoint, you will be able to inspect all the relevant variables in the "Variables" view.

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

10 Comments

I saw the variable view, it has a few args and variable values, but I want to see each step and the result of it.
Not sure what "rags" means but if you step over each line, you should see all the variables you need.
Args. I did, it doesn't display the value of those variables on each line. I right clich to inspect, it shows an error
Maybe if you attach a screenshot it will be more clear to understand.
How to load it? It only says what variable it is, not showing any value.
|
1

Your Installed JREs preference page, project Java Build Paths, and launch configurations should not be using "c:\Program Files\Java\jdk1.7.0_04\jre". They should instead just point to "c:\Program Files\Java\jdk1.7.0_04", after which the Java platform sources will be shown and debugging features you expect will work more automatically.

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.