How does the debugger do it? Could you replicate that?
In reply to Re: Forcing stacktrace, alternative to Carp::Always by jcb in thread Forcing stacktrace, alternative to Carp::Always by LanX