Implement a slightly more resistant to exceptions debugging solution for allocation choice