On Jan 8, 2008 9:59 PM, Glenn Linderman <[EMAIL PROTECTED]> wrote: > Ah, so the new pp option ( --prepare_for_debugging equivalent to -M > perl5db.pl) would still be required to make a debuggable package, by > including the debugger. That makes sense. > And then the debuggable package would have a runtime switch (environment > variable) to actually turn on the debugger or not.
Yup. > Is it possible to rework Profiling the same way, slightly cleaner than > the "hack"? "-d" is already taken by pp, but similar to perl's "-d" pp --debugabble => pp -M perl5db.pl pp --debugabble DProf => pp -M perl5db.pl -M Devel::Dprof pp --debuggable foo --debuggable bar => pp -M perl5db.pl -M Devel::foo -M Devel::bar and the runtime variable should simply be the perl -d option (we should probably require it to match /^-d/). If you specify at run-time something that you didn't think of at pack-time you get to keep both halves. Cheers, Roderich
