How do I add and remove "Debug Current Instruction Pointer"
Ok so my debugging consists of doing print statements in different sections of the code, I dont know more than that.
so I'm busy debuging this method and all of a sudden the problem line gets highlighted in green and now I cant execute that code so I dont know what to do.
I see on the left it says Debug Current Instruction Pointer
I cant find any option to remove it, I try right clicking on the arrow marking it and shouting go away! but cant find any way to get rid of it... make it go away so I can work please
I did notice that while in this mode, which elcipse has forced on me without any reason or information, it tells me what the values of my variables are when I scroll over them. that could be useful, but I still want to turn it off to execute my code!
could someone tell me what this is, how I should use it, and most importantly how to turn it on and off?
Re: How do I add and remove "Debug Current Instruction Pointer"
You might be in the debug view. Do you see a window with a debug tab?
Re: How do I add and remove "Debug Current Instruction Pointer"
Right click in the debug tab window and click terminate and remove for each of the task. You previously clicked debug instead of run and you program has currently stopped on at a break point.
If you can step through your program by pressing F6. This might not work if your program is in infinite loop.
Re: How do I add and remove "Debug Current Instruction Pointer"
Thanks for your response, you were very helpful.
I got rid of the breakpoint but I still dont know what I did to get into that mode... and does everyone use that functionality for debuging? because I didnt know of it, and would sure like to learn how to use it then
Re: How do I add and remove "Debug Current Instruction Pointer"
Well, debug is just right under the run command in the menu, so you probably just clicked debug when you wanted just run the program.
Both are helpful: debug mode and println..
Before debugging, you need to indicated on which line the program should stop. This is done with breakpoints. To add a breakpoint, just double click on the lefthand side (the grey column) of the the line where you want to insert the breakpoint - a little dot will show up. You can have multiple breakpoints. Then select debug from the menu.
the menu has selections for stepping over and stepping into the code.
I'm working in Netbeans right now, so I might be wrong about some of the description.