in reply to Invoke the perl debugger at runtime

Enbugger ?

(Already mentioned in the CB)

edit

I've also recently seen a module messing around with $^P flags to access debugger features in the DB:: namespace. But I didn't have time to investigate further.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Invoke the perl debugger at runtime
by shmem (Chancellor) on Oct 01, 2024 at 14:53 UTC

    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'
      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(θ)| |