Hi,
the debugger is not able (and not allowed) to communicate with secured MCU. The only what you can perform by debugger (via BDM) is the BDM command mass erase.
I hope you have read: S12(X) MCU Security
Moreover, I can provide you test of security and backdoor key usage in very simplified code where it only unsecure the MCU which is programmed with given backdoor key AA AA AA AA AA AA AA AA.
When the code starts the MCU is secured and after execution of flash command:
asm JSR Send_Command;
after previous setup the MCU is unsecured.
You can do any modification you want.
Do not forget to use FLASH NOUNSECURE command in your cmd file to be sure the MCU is secured after the code is loaded by BDM.
Best regards,
Ladislav