Added debugger hook at thread level