Simple trick to shadow the port with a latch byte and send that to the port at the expense of some speed.

Code:
portalatch var byte
portalatch = 0’

portalatch.bit0 = 1
PORTA = portalatch'
Even though it would have been pins left analogue this time, it will still cause hard to debug problems.