This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Debugging" Watch "Debugging" New topic
Author

Debugging

Ishaan Mohan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
Hi,
Is there any way to debug java code i.e line by line like a interpreter ?
Its urgent .
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
any decent IDE will have a debugger other wise use println
Ishaan Mohan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
I can debug the code using jdb but problem is how can I set breakpoints in it ?
Ishaan Mohan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
I got it. My Problem is solved.
Thanks anyway.
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
Originally posted by Ishaan Mohan:
I can debug the code using jdb but problem is how can I set breakpoints in it ?

IM SORRY BUT I AM NOT FAMILIAR WITH JDB
Ishaan Mohan
Ranch Hand

Joined: Jan 20, 2001
Posts: 115
Is there any way that we can know the value of a variable at particular point during debugging ?
I am trying this by placing System.out.println() place to place and setting breakpoints at that place.
Any other way ?
 
jQuery in Action, 2nd edition
 
subject: Debugging