Problem was I was using RA0 and RA1, and I think it's said this way in Pickit 2 User's Guide (
https://www.electro-tech-online.com/custompdfs/2012/05/51553e.pdf).
Thanks.
Hi,
It shows the way the Pk2 should be connected to Pic in ciruit, the chip shown was just an example.
For the 4620 Mclre is pin1, PGD is pin40 RB7 and PGC is pin RB6.
Think you should also check what pins you have connected for Vdd and VSS
Once you have those correct you first want to prove the Programmer part works properly before you attempt the debugger.
You use the Mplab ,Programmer menu for this, not the Debugger menu.
Anyway I now have another problem to be able to debug you have first to program the ICSP header by Debugger-> Program and I get the error unable to enter debug mode. No more information given.
Once you have proven you can program the chip ok then you can try the debugger.
First in the Programmer menu select NONE.
Then in the Debugger menu select the PK2.
Then select RUN or STEP INTO
It will say project out of date so let it compile it again, it should then automatically progam in the Debugger version and start running - as simple as that.
While the Pk2 is robust if you have applied the connections to RA3 as Mclre you might have blown that port if it tried to apply its +12v to it, could possible have blown the whole chip
You also need to answer Johns points about the important Config settings and also to make sure you are using a fairly recent version of MPlab .