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 215705

Summary: "Step Into" action is disabled on Maven based project node
Product: projects Reporter: Jiri Kovalsky <jkovalsky>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: anebuzelsky, mentlicher
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Maven based project reproducing

Description Jiri Kovalsky 2012-07-18 16:37:47 UTC
Created attachment 122172 [details]
Maven based project reproducing

Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Linux version 3.0.0-12-generic running on i386; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.2
Cache directory: /home/cesilko/.cache/netbeans/7.2

Description:
============
Ant based project can be debugged just by pressing F7 or invoking "Debug > Step Into" which will start the session on the first line of main() method. This does not work in Maven based project.

Steps to reproduce:
===================
1. Open attached MemoryView project.
2. Select MemoryView project node and press F7 key. Nothing happens.
3. Select "Debug" from main menu. "Step Into" action is disabled.
Comment 1 Jiri Kovalsky 2012-07-18 16:40:05 UTC
If the fix is easy we might include it in the first 7.2 update.
Comment 2 Jiri Kovalsky 2012-08-27 12:26:05 UTC
Any update on this issue Martine?
Comment 3 Martin Entlicher 2012-08-27 12:40:58 UTC
I'll look at it soon, I hope to fix it within a few days...
Comment 4 Jiri Kovalsky 2012-08-27 13:27:50 UTC
I see, thanks.
Comment 5 Martin Entlicher 2012-10-04 14:10:05 UTC
I'm not sure if this should be a patch candidate, since this has never worked for Maven projects AFAIK.
The problem is, that Maven projects do not support ActionProvider.COMMAND_DEBUG_STEP_INTO.
In ANT it runs <j2seproject1:nbjpdastart stopclassname="${main.class}"/> thus it needs to execute some equivalent in Maven.
Comment 6 Antonin Nebuzelsky 2012-10-09 08:55:04 UTC
Not for the 7.2 patch now. Removing "72patch-candidate" tag.
Comment 7 Milos Kleint 2012-10-23 07:12:04 UTC
not a bug, was never implemented.

maven cannot use the same approach as ant as maven builds are not executed in the same VM. Additionally the code that is needed to support this is fairly complex (to me) and so far I haven't got complains from the userbase with this respect.
Comment 8 Milos Kleint 2013-10-01 11:56:47 UTC
jpda.stopclass should be the property to set to make step into work. The challenge is to make debug.stepinto action work across packagings, meaning come up with a generic solution, for some situations the main class is unknown or hard to guess.
Comment 9 Martin Balin 2016-07-07 08:39:39 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss