File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to stop Eclipse Debugger , just before the Condition , which gives Exception

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Below is a sample program , which will give rise to an ArthemeticException .
Is it possible to stop Eclipse Debugger , just before the Condition , which might give rise to an Exception ??
Please suggest ,Means here i want my Debugger to stop at the line ,
int c = a / b;
because executing this line will give rise to ArthemeticException .



share your ideas , thanks in advance .
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setting a breakpoint?!
Or do you expect that the debugger just stops before an exception occurs without really executing this line? (Which is not possible)
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your suggestion , i posted this question because once go through this link

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/breakpoints/ref-hitcount_option.htm

and look into Exception Breakpoint Caught Exception

Please share with me , if anyone has found anything important on this .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic