Add  debug_hang function
Use debug_hang