Debugging TLS support (WIP)