Set VM Options for project specific netbeans:run-platform goal as follows
-Dnetbeans.run.params="-J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,suspend=n,server=n,address=8888"
Add remote «Run/Debug configuration» with debbuging mode listen (no attach) and port 8888. Then start remote config in debug mode, after specific goal in run mode.