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 256188

Summary: Debug file launches on tomcat while run file executes main method correctly
Product: debugger Reporter: everflux <everflux>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description everflux 2015-10-26 18:18:23 UTC
Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201)
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17
System: Linux version 4.2.0-16-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/tkruse/.netbeans/8.1rc2
Cache directory: /home/tkruse/.cache/netbeans/8.1rc2

I have a multi module maven project.
In the web module I have unit test files. In a unit test file I have additionally a main method.

When "run file" is performed, the main method is executed as expected.

When "debug file" is performed, netbeans tries to deploy the webapp before executing the main method in the unit test class (which never gets deployed anyway)