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.
Currently automatic projects can have a Run Project binding which runs some arbitrary Ant target, and there is support for debugging or profiling single files (main() or JUnit) in Compile-on-Save style. Would be nice if, assuming Run Project were bound to a target known to run <java>, Debug Project (incl. Run to Cursor) and Profile Project could be implemented to run the same target after using presetdef to override <java> to add extra args for the tool.
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