Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By shall

Thread: How do I add and remove "Debug Current Instruction Pointer"

  1. #1
    EscSequenceAlpha is offline Senior Member
    Join Date
    Apr 2012
    Posts
    115
    Rep Power
    0

    Default 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?

  2. #2
    shall is offline Senior Member
    Join Date
    Apr 2012
    Posts
    199
    Rep Power
    0

    Default 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?

  3. #3
    shall is offline Senior Member
    Join Date
    Apr 2012
    Posts
    199
    Rep Power
    0

    Default 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.
    EscSequenceAlpha likes this.

  4. #4
    EscSequenceAlpha is offline Senior Member
    Join Date
    Apr 2012
    Posts
    115
    Rep Power
    0

    Default 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

  5. #5
    shall is offline Senior Member
    Join Date
    Apr 2012
    Posts
    199
    Rep Power
    0

    Default 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.

Similar Threads

  1. Replies: 14
    Last Post: 04-22-2012, 05:28 PM
  2. How to Serialize a "Function Pointer"?
    By kreyszig in forum Advanced Java
    Replies: 20
    Last Post: 08-12-2011, 11:38 PM
  3. How to remove "unused" space in JMenu
    By nowy in forum AWT / Swing
    Replies: 13
    Last Post: 12-07-2009, 04:27 PM
  4. Replies: 0
    Last Post: 11-22-2008, 02:49 AM
  5. Replies: 1
    Last Post: 10-20-2008, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •