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 134146 - Need mechanism to reset hit count for breakpoint
Summary: Need mechanism to reset hit count for breakpoint
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javascript
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 10:44 UTC by Roman Mostyka
Modified: 2012-09-03 08:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-04-29 10:44:45 UTC
1. Install "JavaScript Debugger" plugin.
2. Create a web application with JavaScript code.
3. Debug the application.
4. Set a breakpoint and customize it: set 'hit count' to 3. Notice that in drop down 'is greater than' is chosen.
5. Do an action, which invoke code with breakpoint, 3 times.

Result: Debugger suspends on third time. Do the action, which invoke code with breakpoint, again. Debugger suspends
again. If it is necessary to stop on the breakpoint, when hit count is greater than 3, again, customer needs to remove
and add and customize breakpoint again. Need some mechanism to reset hit count or something like this.
Comment 1 Yang Su 2008-11-19 01:09:42 UTC
This can be achieved by toggling the breakpoint 'Enabled' state.

Bring up Window -> Debugging -> Breakpoints, find your conditional breakpoint, deselect 'Enabled' checkbox, and enable
it again whenever you need it, the condition (in your case, the hit count) will be re-evaluated.
Comment 2 Roman Mostyka 2008-11-20 13:08:28 UTC
But customer still have to do some additional and not obvious actions.
It will be better to have some item like "Reset conditions".
Comment 3 Yang Su 2008-11-20 16:49:29 UTC
OK, thanks for the suggestion, that's reasonable.
Comment 4 Martin Entlicher 2012-09-03 08:31:54 UTC
A new implementation of JavaScript debugger is in trunk. Closing old issues.