Deep trace back of environment for debugging