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 173181 - Debugger does not stop on a breakpoint after moving a variable to a new line
Summary: Debugger does not stop on a breakpoint after moving a variable to a new line
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2009-09-28 10:00 UTC by Alexandr Scherbatiy
Modified: 2009-11-10 04:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-28 10:00:49 UTC
netbeans-trunk-nightly-200909221401-javafx-full.zip 

  Product Version         = NetBeans IDE Dev (Build 200909221401) (#038a2843d59a)
  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 to the editor:
------------------------------------
var a = 10;
------------------------------------

- Set a breakpoint to the line
- Debug the project
 The debugger stops on th ebreakpoint
- Finish debugging

- Add a new line before the 'var a = 10;' line:
------------------------------------

var a = 10;
------------------------------------

The breakpoint still points to the 'a' variable

- Start debugging
The debugger does not stop on the breakpoint
Comment 1 Alexandr Scherbatiy 2009-09-28 10:01:18 UTC
from the IDE log file:

Changing source level to 1.3Even though the source level of C:\Program Files\Java\jdk1.6.0_15\src.zip;C:\Documents and
Settings\andromeda\My Documents\NetBeansProjects\temp\12\01\JavaFXApplication38\src is set to: 1.6,
java.lang.AssertionError cannot be found on the bootclasspath: 
Changing source level to 1.3Even though the source level of C:\Program Files\Java\jdk1.6.0_15\src.zip;C:\Documents and
Settings\andromeda\My Documents\NetBeansProjects\temp\12\01\JavaFXApplication38\src is set to: 1.6,
java.lang.AssertionError cannot be found on the bootclasspath: 
Changing source level to 1.3WARNING: Unable to submit line breakpoint to javafxapplication38.Main at line 9, reason: No
executable location available at line 9 in class javafxapplication38.Main.
WARNING: Unable to submit line breakpoint to javafxapplication38.Main at line 11, reason: No executable location
available at line 11 in class javafxapplication38.Main.
Comment 2 Michal Skvor 2009-10-15 18:35:26 UTC
Fixed.

Warnings will be there because I can't detect whether there is something to execute.

Changeset: 2679:7249fb3f72ad
Comment 3 Lukas Hasik 2009-10-19 10:23:52 UTC
doesn't work - Product Version: NetBeans IDE 6.8 Beta (Build 200910171337)
I just followed the steps to reproduce on W.Vista

Comment 4 Michal Skvor 2009-10-22 18:26:54 UTC
I tested it and it does exactly what should do. It stops on the breakpoint even moved one line down.
Comment 5 Alexandr Scherbatiy 2009-10-27 15:18:02 UTC
The issue is reproduced in the Build 200910261401
Comment 6 Michal Skvor 2009-11-02 13:00:09 UTC
This is probably also issue of registration in java debugger.
Comment 7 Martin Entlicher 2009-11-02 14:16:08 UTC
Probably yes, works fine for me in build #200910310201 with JavaFX.
Comment 8 Alexandr Scherbatiy 2009-11-10 04:42:43 UTC
verified in Build 200911091156