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 209189 - Netbeans should show when breakpoint is hit
Summary: Netbeans should show when breakpoint is hit
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
: 201844 210001 216379 216411 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-05 19:34 UTC by Chiana
Modified: 2012-10-11 10:19 UTC (History)
8 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 Chiana 2012-03-05 19:34:27 UTC
When the IDE hit's a breakpoint it should show itself, it does not do that.
As it is now you have to switch to netbeans to check if it has hit a breakpoint when nothing happens in a swing application.
Comment 1 Martin Entlicher 2012-03-27 09:26:43 UTC
Probably the same problem as issue #210001.
Please verify, that Line.show (ShowOpenType.OPEN, ShowVisibilityType.FRONT)
does what it should do.
Comment 2 Martin Entlicher 2012-09-21 06:19:47 UTC
*** Bug 201844 has been marked as a duplicate of this bug. ***
Comment 3 Martin Entlicher 2012-09-21 06:23:48 UTC
P2 due to issue #201844 and the fact that this is a regression.

Line.show (..., ShowVisibilityType.FRONT,...) does not do what it should, because it was badly rewritten from show(SHOW_TOFRONT,...).
It should call toFront().
Comment 4 Martin Entlicher 2012-09-21 06:35:28 UTC
Fixed by changeset:   233950:84f0b7d2637d
http://hg.netbeans.org/main/rev/84f0b7d2637d
Comment 5 Martin Entlicher 2012-09-21 06:41:14 UTC
*** Bug 210001 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2012-09-22 02:15:24 UTC
Integrated into 'main-golden', will be available in build *201209220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/84f0b7d2637d
User: mentlicher@netbeans.org
Log: #209189: Really front the editor component.
Comment 7 Tomas Danek 2012-10-05 09:08:04 UTC
Martine, Jirko...isn't this one worth to backport to 7.2.1?
Comment 8 Martin Entlicher 2012-10-05 14:03:17 UTC
O.K., the fix is simple.
Comment 9 Jiri Kovalsky 2012-10-05 16:28:31 UTC
Product Version: NetBeans IDE Dev (Build 201210040002)
Updates: Updates available
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.0.0-12-generic running on i386; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

I am sorry but I don't see any difference in development build #201210040002. This is how I try to reproduce the bug.

1. Open JavaApplication1.java and set line 19 breakpoint (see below).
2. Press Ctrl+F5 to start debugging the application.
3. Minimize the IDE and maximize my web browser.
4. After 10 seconds nothing happens. IDE icon in application bar does not start to blink or any other visual notification occurs.


Code snippet from the JavaApplication1.java class:

16    public static void main(String[] args) throws InterruptedException {
17        System.out.println("Start");
18        Thread.sleep(10000);
19        System.out.println("Finish");
20    }
Comment 10 Martin Entlicher 2012-10-08 14:36:21 UTC
*** Bug 216379 has been marked as a duplicate of this bug. ***
Comment 11 Martin Entlicher 2012-10-08 14:52:26 UTC
I do not remember whether there was some application bar blinking on Linux when breakpoint was hit in the past. I did not find any specifications, only comments in issue #47825:

Jan Jancura 2005-03-29 16:36:53 UTC
I think that current solution is OK. 
Default on Windows -> fronting 
default on Linux -> do not use fronting.

Plus I've added fronting on Mac as well (issue #201844).

I've made the fronting default on all platforms in JavaScript debugger. And it looks like the implementation in (Gnome) Linux window manager has changed to just blink the application tab when the fronting of a window is requested. It does not front the window unless it has focus. Since this behavior looks reasonably, we can think about removing the OS condition altogether and do the fronting on all platforms. But this issue is submitted for Windows.
Comment 12 Martin Entlicher 2012-10-08 15:06:40 UTC
FYI: See issue #219712.
Comment 13 miked_187 2012-10-08 18:38:45 UTC
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-9445-on-20120921)
Java: 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\mike\AppData\Roaming\NetBeans\7.2
Cache directory: C:\Users\mike\AppData\Local\NetBeans\Cache\7.2

flashing NB task bar icon still not working with all available updates installed
Comment 14 Jiri Kovalsky 2012-10-09 09:27:33 UTC
This bug fix has not been added to the first patch of NetBeans 7.2 but we consider adding it to the second one. Resolving as fixed again. Please don't reopen the bug unless you can reproduce it in the latest trunk build [1] #201210090002. Thanks.

[1] bits.netbeans.org/download/trunk/nightly/latest
Comment 15 Jiri Kovalsky 2012-10-09 11:05:52 UTC
Works great in #201210070002 on Windows 7 in my VirtualBox. Please integrate the fix to release72 branch.
Comment 16 Martin Entlicher 2012-10-09 12:03:48 UTC
Thanks, transplanted as changeset: 242960:eb9e613a1d4d and
changeset: 242961:f477f3e03fa2
Comment 17 Chiana 2012-10-09 20:01:18 UTC
Just for clarification: Verified...
Comment 18 Quality Engineering 2012-10-10 14:15:36 UTC
Integrated into 'releases', will be available in build *201210100934* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/eb9e613a1d4d
User: mentlicher@netbeans.org
Log: #209189: Really front the editor component.
(transplanted from 84f0b7d2637d56fbb512c8cd1d34cc1214bc0aa0)
Comment 19 Martin Entlicher 2012-10-10 14:58:11 UTC
*** Bug 216411 has been marked as a duplicate of this bug. ***
Comment 20 Jiri Kovalsky 2012-10-11 10:19:54 UTC
Verified in NetBeans 7.2.2 build #201210100934 on Windows 7.