Yes, I have program a password and advance the MCU lifecycle, and using HSE.
I followed the method you provided and performed the PE unlocking operation, and it was successful as indicated.

However, after that, when I was debugging, the problem still persisted.

Is it the case that "secure boot" and "secure debug" cannot coexist simultaneously?
When secure boot fails, the secure debug cannot maintain the unlocked state?