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 258827 - "Debug File" on main class deploys web application
Summary: "Debug File" on main class deploys web application
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 12:05 UTC by gromit190
Modified: 2016-05-17 01:46 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 gromit190 2016-04-14 12:05:45 UTC
I've created a main class with a main method in a web application. I want to test/debug this particular class without deploying and launching my web application. "Run File" does excactly what it should, it runs the particular file.

However, selecting "Debug File" (on the same file) deploys the web application to a server, and launches it. The main method is never even executed.

Maven web application, Tomcat 8 server
Comment 1 Petr Hejl 2016-05-16 08:19:21 UTC
Reproducible in maven, works ok in ant.
Comment 2 Petr Hejl 2016-05-16 08:51:26 UTC
Fixed in web-main 207653e54af1.
Comment 3 Quality Engineering 2016-05-17 01:46:28 UTC
Integrated into 'main-silver', will be available in build *201605170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/207653e54af1
User: Petr Hejl <phejl@netbeans.org>
Log: #258827 - "Debug File" on main class deploys web application