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

Summary: Most debugger actions do not work
Product: debugger Reporter: _ lcincura <lcincura>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Assertion stack trace

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