Adding this.context and Thread.backtrace()

Adding this.context and Thread.backtrace()
Here I would remove the empty line before the #endif.