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.
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.
If the fix is easy we might include it in the first 7.2 update.
Any update on this issue Martine?
I'll look at it soon, I hope to fix it within a few days...
I see, thanks.
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.
Not for the 7.2 patch now. Removing "72patch-candidate" tag.
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.
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.
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