debug error stack when we encounter an error
debug with levels