Nashorn "debug" target within NetBeans ide is broken. Also, nashorn source directories use older (pre-modular) layout and hence debug breakpoint etc. won't be mapped property (and refactoring won't work).
JDK-8085574NetBeans nashorn debug target is broken. Nashorn source directory config. is wrong