Unlocking after ID code mode given as 'locked'

While locking ,with ID code mode - lock with all erase support ,it is easy to unlock by typing the ID code (that was used to lock ) in debug settings and debug again.


But while using ID code mode- Locked , unlocking by entering the  ID code (that was used to lock ) in debug setting is not permitting to debug again how to unlock this situation.Kindly suggest some methods.