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 149465 - Debugger does not stop on breakpoints
Summary: Debugger does not stop on breakpoints
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords: REGRESSION
: 150261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-08 09:22 UTC by Alexandr Scherbatiy
Modified: 2008-10-18 21:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Debugger output. Verbose mode. (14.96 KB, text/plain)
2008-10-08 12:31 UTC, Alexandr Scherbatiy
Details
Debugger output. Debug mode. (42.20 KB, text/plain)
2008-10-08 12:34 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-08 09:22:43 UTC
Steps to reproduce:


- Create a JavaFX Script file
---------------------------
var a = 10;
var b = 20;
var c = 30;
var d = 45;
---------------------------

- Add some breakpoints
- Start Debugger
 Debugger does not start



init:
deps-jar:
using profile: DESKTOP
Java compilation
nothing to compile
JavaFX compilation
executing commandline: [C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\..\bin\javafxc.exe,
-Xbootclasspath/p:C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/shared/javafxc.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/shared/javafxrt.jar, -classpath, C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-D3D-Native.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-D3D.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-HW.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-OGL.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Scenario.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/gluegen-rt.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/javafx-swing.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/javafxgui.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/jmc.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/jogl.jar;C:\Program
Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/websvc.jar;, -d, C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled, @C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\javafxc41991sources]
copying: src into: C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled using filter: RESOURCES
copying: src\javafxapplication20 into: C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled\javafxapplication20 using filter: RESOURCES
copying runtime libraris
repackaging libraries
signing libraries
Pack200 & gzip compression of libraries
application Jar packaging
ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
application Pack200 compression
ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
application Pack200 decompression
ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
generating temporary keystore for self-signing
executing commandline: [C:\Program Files\Java\jdk1.6.0_03\bin\keytool.exe, -genkey, -keystore, C:\Documents and
Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\.keystore, -storepass, password,
-alias, key1, -keypass, password, -dname, CN=${application.vendor}]
keytool error: java.lang.Exception: Key pair not generated, alias <key1> already exists
signing Jar: C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar
executing commandline: [C:\Program Files\Java\jdk1.6.0_03\bin\jarsigner.exe, -keystore, C:\Documents and
Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\.keystore, -storepass, password,
-keypass, password, C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar, key1]

Warning: 
The signer certificate will expire within six months.
Pack200 & gzip compression of jar: C:\Documents and Settings\andromeda\My
Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar
ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
generating JNLP launcher
generating JNLP launcher
generating HTML applet page
can't open C:\Program Files\Java\jdk1.6.0_03\lib\tzmappings.
compile:
A
Java Result: 1
debug:
BUILD SUCCESSFUL (total time: 7 seconds)
Comment 1 Alexandr Scherbatiy 2008-10-08 09:23:20 UTC
JavaFX_NB_Plugin_NB65_daily: #291

  Product Version         = NetBeans IDE Dev (Build 200809151401)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.
Comment 2 Adam Sotona 2008-10-08 12:09:03 UTC
Could you, please, attach build log with Ant set to verbose mode?
It is not visible why the debugger does not start, for me the debugger is working.
From the log I see only that the project has been created before the change and project properties have not been updated 
yet (CN=${application.vendor}). Try to open project properties, check them and close with OK button.
Comment 3 Alexandr Scherbatiy 2008-10-08 12:31:57 UTC
Created attachment 71360 [details]
Debugger output. Verbose mode.
Comment 4 Alexandr Scherbatiy 2008-10-08 12:34:03 UTC
Created attachment 71361 [details]
Debugger output. Debug mode.
Comment 5 Alexandr Scherbatiy 2008-10-08 12:34:51 UTC
The debugger starts and finishes without stopping on breakpoints.

Listening on 3267
User program running
FieldBreakpoint javafxapplication1.Main.b successfully submitted.
FieldBreakpoint javafxapplication1.Main.c successfully submitted.
User program finished
Comment 6 Alexandr Scherbatiy 2008-10-08 12:40:39 UTC
- Create a JavaFX Script file
---------------------------
var a = 10;
var b = 20;
var c = 30;
var d = 45;
---------------------------

- Add some breakpoints
- Start Debugger
  Debugger finishes without stopping on the breakpoints
Comment 7 Alexey Butenko 2008-10-15 11:29:18 UTC
Ok found the problem, 
first problem is that Breakpoint request was not passed to JDI, because sourceRoot was null,
this will be fixed by adding to -debug-start-debugger target sourcepath parameter for nbjavafxstart,
and the second problem is following:
In LineBreakpoint we have 2 locations in code refer to compiled class file,
first location is initialization and second in $run method, which is not visible in JavaFX.
And Breakpoint request was created only for initialization but second request was omitted as duplicate, because it was
compared by line number which was the same.

Comment 8 Alexey Butenko 2008-10-16 09:23:47 UTC
*** Issue 150261 has been marked as a duplicate of this issue. ***
Comment 9 Alexey Butenko 2008-10-16 09:53:15 UTC
Now it will stop on breakpoints.
But second problem still present and on some breakpoints it will stop in 2 different threads.
I'm closing this issue, since it is not stopper any more.
Please open another issue for second problem, if it is not opened yet.
Comment 10 Alexandr Scherbatiy 2008-10-17 11:29:23 UTC
verified in 2008-10-17_03-01-38.zip
Comment 11 Karthikeyan Rajeswaran 2008-10-18 21:15:46 UTC
See also: issue 150112 , issue 149605