Everything works but doesn't seem to want to exit interrupt routine.
Because you have a problem with the timing in serial TX/RX.(as mentioned in post#14)

Use a timeout to exit from DEBUGIN because you get stack there.

Al.