debugtools.lua was primarily meant as an interface to a profiler.

But since it only measures functions called from the point it was
created, it won't help us that way. Anyway, debugtools may serve as a
place to put console utilities for debugging/testing.