|Re: Step Into grayed out in Debug perspective [message #677592 is a reply to message #676807]
||Wed, 08 June 2011 21:54
| B Mayes
Registered: June 2011
omar mesa wrote on Mon, 06 June 2011 11:15|
I believe your right. I am new to this. I re-ran in Java mode and switched back to Debug and then the buttons were ok (after hitting F5).
Now the problem is that the program runs ok in Java, but when stepping through, as soon as it hits the
system out command (System.out.println("To compute the air pollution index..."); it gives me a file not found exception, however,
this simple exercise program from my Java book has no incoming file. It expects input from the user .
Hmm...there is something fishy going on here but without seeing the code for the entire exercise program it's hard to say. If a file is not found then it should fail to be found regardless of whether or not you use the debugger since the code executed is the same either way.
Also, how are you launching the debugger? Again, you need to make sure you set a breakpoint by either double-clicking in the area on the left of the editor or right-click > toggle breakpoint. Here is a screenshot where you can see a breakpoint is set. I set it by double-clicking in the orange area on the left of the editor:
Then I would just recommend you right-click on the Java file > debug as > Java application like this:
If you know someone that can help you in person that might be easier but if not, keep posting back and I'll try to guide you through it as best I can. Hopefully the screenshots help.
(Size: 13.42KB, Downloaded 823 times)
(Size: 112.91KB, Downloaded 852 times)
Powered by FUDForum
. Page generated in 0.02491 seconds