add try catch to debug

Signed-off-by: Thomas Warlop <thomas.warlop@gmail.com>