Improve internal debugging infrastructure.