Issue #449 Added method for getting the stack trace while debugging