Results 1 to 3 of 3
  1. #1
    sliminem is offline
    Join Date
    Aug 2011
    Rep Power

    Default Eclipse Debugger

    Hi guys,
    Can you please tell me the easiest and quickest way to have an overview of how your program behaves when run. I just want to have a quick view of variables, loops etc...

    Thank you
    enCoded Messages

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Zurich, Switzerland
    Rep Power


    assuming you know eclipse well i will describe my quick way to debug variable without going into details:

    1. Go to Window -> Open perspective -> Debug
    2. Set a breakpoint at the first variable you want to see.
    3. Go to Run -> Dubug as -> Java Application
    4. The program starts an holds at your breakpoint
    5. Double click your variable, right click and choose Watch. One the code has run the statement your can see the values in the expressions window.
    6. Continue dubugging your code with F5 (step into) or f6 (step over) and do 5. for each variable you want to watch.

    for a simple watch to one variable i put this variable in a line of code with System.out.println(variable) at the appropriate place. btw, you will find a good tutorial about the eclipse debugger following my signature.
    Last edited by j2me64; 08-15-2011 at 10:19 AM.

  3. #3
    sliminem is offline
    Join Date
    Aug 2011
    Rep Power

Similar Threads

  1. Eclipse debugger.
    By robc in forum Eclipse
    Replies: 0
    Last Post: 06-02-2010, 11:01 PM
  2. jGRASP debugger
    By TsAmE in forum New To Java
    Replies: 2
    Last Post: 02-23-2010, 09:35 PM
  3. XML debugger in eclipse
    By bichi59 in forum Eclipse
    Replies: 0
    Last Post: 01-29-2009, 08:22 AM
  4. JS Debugger
    By jSarK0Y in forum Forum Lobby
    Replies: 0
    Last Post: 07-21-2008, 09:50 PM
  5. Help with debugger!!
    By anatel24 in forum New To Java
    Replies: 1
    Last Post: 04-07-2008, 03:01 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