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 143761 - Can't add breakpoint to file with Guarded Section
Summary: Can't add breakpoint to file with Guarded Section
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 143841 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-13 14:10 UTC by Ivan Sidorkin
Modified: 2008-09-17 12:09 UTC (History)
2 users (show)

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 Ivan Sidorkin 2008-08-13 14:10:41 UTC
Product Version: NetBeans IDE Dev (Build 200808130201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

cant add breakpoint to file with guarded sections
at least to Visual Midlet and JFrame

but it works after I added breakpoint to regular java file
Comment 1 Ivan Sidorkin 2008-08-13 14:17:24 UTC
the same for  NetBeans IDE 6.5 Beta (Build 200808111757)
Comment 2 Marian Mirilovic 2008-08-13 14:18:26 UTC
isn't that a side effect of fixing issue 143419
Comment 3 Ivan Sidorkin 2008-08-13 14:49:39 UTC
looks like not
it reproducible with NetBeans IDE 6.5 Beta (Build 200808081619)
Comment 4 Jan Jancura 2008-08-13 15:09:22 UTC
not connected to guarded sections. this issue occures if you are opening form using "Open" action only. Toggle works OK
if you use "Edit" action to open Form.

org.netbeans.modules.debugger.jpda.ui.actions.ToggleBreakpointActionProvider checks line number. line number is -1 when
form is opened, but 0 when simple Java file is opened. And ToggleBreakpointActionProvider is not notified when cursor
position is changed...
Comment 5 Martin Entlicher 2008-08-13 16:31:11 UTC
Reproduced, the problem is in the new class EditorContextDispatcher.
The list of opened panes is empty while the form is activating the opened TopComponent, therefore we have to listen on
changes in opened panes.
Comment 6 Martin Entlicher 2008-08-13 17:24:02 UTC
Fixed in changeset:   96055:cdf81ec818ee
http://hg.netbeans.org/main/rev/cdf81ec818ee
Comment 7 Daniel Prusa 2008-08-14 07:58:30 UTC
*** Issue 143841 has been marked as a duplicate of this issue. ***
Comment 8 Peter Pis 2008-08-27 10:47:58 UTC
Verified. NetBeans IDE Dev (Build 200808261401)
Comment 9 Ivan Sidorkin 2008-09-09 17:21:10 UTC
Product Version: NetBeans IDE Dev (Build 200809081401)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

steps to reproduce

- delete userdir
- start IDE
- create Mobile Application
- HelloMIDlet.java opened in Flow view
- switch to Source view
- try to add breakpoint
Comment 10 Peter Pis 2008-09-10 09:00:41 UTC
Can't reproduce for GUI in j2se project.
Comment 11 Martin Entlicher 2008-09-10 09:54:35 UTC
Reproduced via the Mobile Application.
Comment 12 Martin Entlicher 2008-09-10 13:34:55 UTC
Fixed in changeset:   101182:e008ea2db012
http://hg.netbeans.org/main/rev/e008ea2db012
Comment 13 Quality Engineering 2008-09-11 17:35:00 UTC
Integrated into 'main-golden', will be available in build *200809111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e008ea2db012
User: mentlicher@netbeans.org
Log: #143761 - Assure that the change in currently opened pane is fired.
Comment 14 Ivan Sidorkin 2008-09-17 12:09:02 UTC
verified with NetBeans IDE Dev (Build 200809170201)