alternative implementation of *debug-on-failure* (without spurious call frames)