Hello,
You have to connect right after core leaves the reset and before the reset is triggered by micro.
For example Lauterbach debugger use "halt core on power on reset" script:
petervlna_0-1633951050397.png
Find out how you can stop code execution on your debugger.
You can also have a look at following thread (it is for MPC5748G but the resolve is the same for all reset escalation issues)
https://community.nxp.com/t5/MPC5xxx/MPC5748G-Cannot-attached-JTAG-after-erase-all/m-p/617380
Best regards,
Peter