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 132507

Summary: Step Into execution does not point to the first executed statement
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: DebuggerAssignee: Alexey Butenko <alexeybutenko>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2008-04-10 12:04:53 UTC
Steps to reproduce:

- Create an FX file:
-----------------------------------------------------------------------
import java.lang.System;

function a(){
    System.out.println("a");
}

function b(){
    System.out.println("b");
    a();
}

function c() {
    System.out.println("c");
    b();
}

function d(){}

c();
-----------------------------------------------------------------------

- Press 'F7' (Step Into)
  Current Program Counter points to 'function d(){}' line
  not to 'c();' that is the first executed statement.
Comment 1 Alexey Butenko 2008-04-23 12:49:26 UTC
process exist because not defined onClose operation for Frames.
In Java for Frames there is setDefaultCloseOperation used automatically, the same functionality should be implemented in JavaFX.
Comment 2 Alexey Butenko 2008-04-23 13:12:07 UTC
Please ignore my last comment, it was for issue #122157, sorry
Comment 3 Alexandr Scherbatiy 2008-05-23 09:03:18 UTC
The same is for the following code:
-----------------------------------------------------
var a = 10;
var b = 20;
var c = a + b;
var d = a - b;
-----------------------------------------------------
Comment 4 Alexey Butenko 2008-07-09 16:06:45 UTC
mark as fixed, please verify
Comment 5 Alexandr Scherbatiy 2008-07-10 14:05:27 UTC
'F7' (Step Into) runs 2 debugger and starts from the last line in the code
Comment 6 Alexey Butenko 2008-08-13 10:30:13 UTC
F7 disabled, please verify
Comment 7 Alexandr Scherbatiy 2008-08-22 12:00:40 UTC
verified