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 190695 - "Step Over Expression" does not highlight code parts to be executed
Summary: "Step Over Expression" does not highlight code parts to be executed
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 13:43 UTC by Jiri Kovalsky
Modified: 2010-10-22 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Debugging session before calling "setText" method at line 58 of Anagrams.java file. (28.94 KB, image/png)
2010-09-30 13:43 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2010-09-30 13:43:19 UTC
Created attachment 102212 [details]
Debugging session before calling "setText" method at line 58 of Anagrams.java file.

Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03
System: Linux version 2.6.31-22-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/cesilko/.netbeans/6.9

It is very hard to guess which part of a complex expression is being debugged, because the visual feedback is not useful. Whole line of code is light green but concrete part of the code to be executed is not highlighted. The only help comes from the Variables view that shows "Before call to <method>" hints and the like.

Since this makes the "Step Over Expression" feature almost unusable and it is actually a regression from NetBeans 6.8, I consider the bug P2.

Steps to reproduce:
===================
1. Launch NetBeans IDE with empty userdir.
2. Create new AnagramGame Java sample project.
3. Open Anagrams.java file and toggle line breakpoint at line 58.
4. Press Ctrl+F5 to start debugging main project.
5. Once the breakpoint at line 58 is hit, press Shift+F8 twice.
6. You will see that "setText" method call is not highlighted.
Comment 1 Martin Entlicher 2010-09-30 16:23:38 UTC
Reproduced. The highlighting is added, but it's not displayed.
It seems that it gets overdrawn by the light line annotation.
Comment 2 Martin Entlicher 2010-10-07 09:41:07 UTC
The fix was simple - changeset:   178957:72e29fba80a4
http://hg.netbeans.org/main/rev/72e29fba80a4
Comment 3 Quality Engineering 2010-10-08 03:24:33 UTC
Integrated into 'main-golden', will be available in build *201010080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/72e29fba80a4
User: mentlicher@netbeans.org
Log: #190695 Increase the Z order of the operation highlight.
Comment 4 Jiri Kovalsky 2010-10-12 11:57:15 UTC
Feature almost unusable, regression from 6.8, fix straightforward & isolated -> potential candidate for 6.9.1

Would you agree Martine?
Comment 5 Martin Entlicher 2010-10-12 13:05:38 UTC
Yes, I'd agree definitely. The fix is safe.
Comment 6 Jiri Kovalsky 2010-10-13 09:16:50 UTC
Verified in NetBeans 7.0 M2 candidate build #201010112200.
Comment 7 Petr Suchomel 2010-10-18 09:32:43 UTC
Backported into release692 http://hg.netbeans.org/releases/rev/091a474355a0
Comment 8 Jiri Kovalsky 2010-10-22 13:25:36 UTC
Works fine in NetBeans IDE 6.9 Update 2 #201007282301.