in reply to Re: Invoke the perl debugger at runtime
in thread Invoke the perl debugger at runtime

Yeah, right. But I want Devel::Trace as stand-alone, without dependency on Enbugger.

Thanks very much for the hint. Will look how Enbugger does things.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
  • Comment on Re^2: Invoke the perl debugger at runtime

Replies are listed 'Best First'.
Re^3: Invoke the perl debugger at runtime
by ysth (Canon) on Oct 01, 2024 at 21:53 UTC
    IIRC from way back when diotalevi made Enbugger, perl compiles differently when run under the debugger, and Enbugger has to rewrite the optree to replace some normal ops with debug flavors. If you can't get the -d flag set initially, I think Enbugger is the only way.
    --
    A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |