Re: Curiosity Board Problem
Which MPLAB X version do you use ?
If programming mode works but not debugging mode maybe you selected the wrong ICD pair in the config bits...
Possibly this could be the problem:
#pragma config ICESEL = ICS_PGx2
Maybe it should be:
#pragma config ICESEL = ICS_PGx1
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS Mojave (10.14.6) and MPLAB X IDE v5.30
Curiosity PIC32MZ EF 1 & 2, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.