Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.0
-
None
-
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)CentOS Orthogon Linux release 7.2.1511
Kernel 3.10.0-327.el7.x86_64 on an x86_64
Description
Setting break points for a maven based RCP module do not work properly if the module does also deploy its sources as an artifact to the repository.
It seem to be the case that the break points set in the sources of the opened project are fully ignored. I.e. when starting the debugger the break points do not trigger at all.
However, if a break point is set for the read-only sources of the deployed source code artifact (via dependency section of the main application) then everything works as expected.
The problem can be reproduced as follows:
- download the attached sample project
- tar -xzvf debugtest.tgz
- open the maven RCP project within netbeans
- clean and build
- open Installer.java from sub-module debugtest-sample
- set a break point for the run method of the @OnStart callback
- start the debugtest application in debug mode
- bad: observe that the break point does not trigger
- remove the file "com/mycompany/debugtest-sample/1.0-SNAPSHOT/debugtest-sample-1.0-SNAPSHOT-sources.jar" from the local maven repository
- try to debug again
- good: observe that the break point triggers as expected
- therefore it is supposed that the problem is somehow related to the deployed source artifact