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 145784 - Step over expression doesn't work
Summary: Step over expression doesn't work
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 11:23 UTC by Petr Cyhelsky
Modified: 2008-09-17 05:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot - just press pause after the steps and sometimes u get this (185.25 KB, image/jpeg)
2008-09-01 13:40 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2008-09-01 11:23:11 UTC
Product Version: NetBeans IDE Dev (Build 200809010201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)

Observed: In some cases when step over expression is invoked it not only doesn't step over the expression(the session
seems to be running, but also doesn't hit following breakpoints or do anything - it just seems to be running endlessly
in some kind of circle) but also the threads in debugging views are flickering like crazy.

Steps to reproduce: Open memory viewer sample project as main project -> make sure no breakpoints are set -> make sure
MemoryView.java is set as main file -> set breakpoint on third line of main method of MemoryView.java -> invoke step
into to start debugging session -> invoke step over expression twice
Comment 1 Petr Cyhelsky 2008-09-01 13:40:50 UTC
Created attachment 68790 [details]
screenshot - just press pause after the steps and sometimes u get this
Comment 2 Martin Entlicher 2008-09-02 17:12:26 UTC
Reproduced, starting to explore what's wrong...
Comment 3 Martin Entlicher 2008-09-03 12:59:03 UTC
There are more problems:
1) Method exit breakpoint, which is submitted to get the expression return value survives finish of the debugger session
and is submitted for the next debugging session.
2) Debugging view is instaneously repainted and slows down conditional breakpoints (here the above described method exit
breakpoint is hit many times). Issue #145313 is submitted for this.
3) Method exit breakpoint is useless for "<init>" methods (i.e. constructors), since these have always void returned value.
Comment 4 Martin Entlicher 2008-09-03 15:10:30 UTC
Items 1) and 3) are fixed in changeset:   99769:fed90c092c88 and changeset:   99770:ffdb52ae1645

http://hg.netbeans.org/main/rev/fed90c092c88
http://hg.netbeans.org/main/rev/ffdb52ae1645

Item 2) will be fixed in issue #145313.
Comment 5 Quality Engineering 2008-09-04 06:04:16 UTC
Integrated into 'main-golden', will be available in build *200809040201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fed90c092c88
User: mentlicher@netbeans.org
Log: #145784 - If an implementation of a hidden breakpoint is removed, remove also the breakpoint from DebuggerManager, so that the next session does not inherit it.
Comment 6 Petr Cyhelsky 2008-09-08 12:21:46 UTC
verified
Comment 7 Martin Entlicher 2008-09-16 14:15:51 UTC
This fix was changed in changeset:   102198:eee22cb751e2 because of issue #147321.
http://hg.netbeans.org/main/rev/eee22cb751e2
Comment 8 Quality Engineering 2008-09-17 05:47:25 UTC
Integrated into 'main-golden', will be available in build *200809170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/eee22cb751e2
User: mentlicher@netbeans.org
Log: Issue #145784 fixed in a different way - debugger-specific breakpoints introduced via JPDABreakpoint.get/setSession().
This modification of the original fix fixes issue #147321.