I'd try changing these to start with:
Code:
  CONFIG PLLCFG = OFF       ; Oscillator used directly
  CONFIG IESO = OFF         ; Oscillator Switchover mode disabled
  CONFIG DEBUG = OFF        ; Disabled
DEBUG is controlled from within MPLAB when you program it for debugging.

Usually "The target device is not ready for debugging" is an osc issue.