This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 2140 - Can we add conditional breakpoints to the debugger?
Summary: Can we add conditional breakpoints to the debugger?
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jon Koplin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-06-09 19:31 UTC by Jon Koplin
Modified: 2002-07-19 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Koplin 1999-06-09 19:31:25 UTC
Some times, you know that something is going wrong, for example, within a "for" loop.
But, it occurs only after, says, 450 iterations. It would be nice to add conditional breakpoints.

[Janne] Should be easy to do with numeric operations but the best solution would be having also restricted script saying like if (i > j+2)  { BREAK; } or something similar.

Example:

 for ( int i = 0; i < 4500; i ++ )
 {
   // do some complex job
  //   <==============  there, we set a breakpoint if and only if `i` is greater than 450
 }
Comment 1 Marek Grummich 2000-07-25 09:23:59 UTC
Priority is changed to P4 (normal).