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 63148 - Most debugger actions do not work
Summary: Most debugger actions do not work
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-08-26 11:15 UTC by _ lcincura
Modified: 2005-10-11 14:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Assertion stack trace (746 bytes, text/plain)
2005-08-26 11:16 UTC, _ lcincura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ lcincura 2005-08-26 11:15:15 UTC
NetBeans IDE 4.2 [200508251800] on jdk 1.5.0_05

Most debugger actions - Step Into, Run to Cursor, Step Out ... - fails with same
assertion error.
Comment 1 _ lcincura 2005-08-26 11:16:34 UTC
Created attachment 24265 [details]
Assertion stack trace
Comment 2 Martin Entlicher 2005-08-26 14:32:22 UTC
I do not think this is a debugger problem. The actions work fine for me in older
build with up-to-date debugger.
Moving to java for evaluation...
Comment 3 Pavel Flaska 2005-08-26 15:07:37 UTC
These actions are considered as 'background scan sensitive'. You have started
debugger before background scan was finished. 

Details at http://java.netbeans.org/ui/waitscanfinished.html

Assertion is caused by calling JavaMetamodel.invokeAfterScanFinished() outside
of AWT EventQueue. See method javadoc.
Comment 4 Martin Entlicher 2005-08-26 17:01:38 UTC
Finally reproduced. When the debugger is started via "Debug Project" or "Debug
File" then all works O.K. Only when one needs to start debugging via "Step
Into", or "Run To Cursor", etc. it fails with the assersion error.
It's broken due to threading changes after the fix of issue #61542.
Comment 5 Martin Entlicher 2005-08-26 17:02:42 UTC
Thanks for the comments about background scanning.
Comment 6 Martin Entlicher 2005-08-26 18:23:46 UTC
Fixed in trunk. It's assured that J2SE actions are invoked on AWT thread:

/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/FixActionProvider.java,v
 <--  FixActionProvider.java
new revision: 1.16; previous revision: 1.15

/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/RunToCursorActionProvider.java,v
 <--  RunToCursorActionProvider.java
new revision: 1.13; previous revision: 1.12

/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/StepIntoActionProvider.java,v
 <--  StepIntoActionProvider.java
new revision: 1.13; previous revision: 1.12
Comment 7 _ lcincura 2005-10-11 14:41:43 UTC
Verified in build 200510100858