trace: Add some debugging support.