Update to new Debug.with_thread_associated API

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #7 from djs55/add-backtraces

Update to new Debug.with_thread_associated API