4.2.9 What is Different About an MPLAB® X IDE Debug Build?
MPLAB X IDE needs to enable a debug device environment to properly execute a debug session; this environment is not suitable for execution outside of a debug environment. See MPLAB X IDE documentation for details.