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 182188

Summary: Breakpoints do not work for the functions
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: DebuggerAssignee: Michal Skvor <misk>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173187    

Description Alexandr Scherbatiy 2010-03-17 11:36:04 UTC
NetBeans-JavaFX-Soma:  #188

  Product Version         = NetBeans IDE Dev (Build 201003160201) (#81ecef16b2f8)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor:
-----------------------------------------------------------
class A{
    public function show() {  // <-- Set a breakpoint
            println("A");
    }
}

class B extends A{
    override function show() {   // <-- Set a breakpoint
            println("B");
    }
}

var a = A{};
a.show();

var b = B{};
b.show();
-----------------------------------------------------------

- Set breakpoints to the show() function in the A and B classes
- Debug the project

The debugger does not stop on the breakpoints
Comment 1 Michal Skvor 2010-03-17 13:20:37 UTC
This is caused due to missing information about the compiled script to the class files. Because there is no information about executable code during the breapoint placing the debugger tries to stop on breapoint but when no executable code is present the breapoint is skipped. This is issue for compiler.
Comment 2 Petr Suchomel 2010-03-26 13:33:46 UTC
Caused by missing mapping between JavaFX and classfiles generated methods by compiler
Comment 3 Michal Skvor 2010-06-22 14:32:13 UTC
Tested and it works for me.
Comment 4 Alexandr Scherbatiy 2010-06-24 09:33:40 UTC
verified in JavaFX Composer FXJDI: #31 
NetBeans IDE Dev (Build 201006240001)