Dear Lazyweb, I can't figure this out. I'd like to do something like this:
perl -MPIPs -de '$s = PIPs->new->model("PIPs")->schema; $DB::single = 1'
That would theoretically enter the debugger and I could just hit 'c' and continue to that breakpoint, have my variable set and start debugging my app. Instead, I have the following nasty alias:
alias debug_pips='echo "\$s = PIPs->new->model('PIPs')->schema";perl -MPIPs -de1'
And I just cut-n-paste the echoed line into the debugger. Is there a better way?
perl -de 'BEGIN { push @DB::typeahead, q{$s = PIPs->new->model("PIPs")->schema} }; 1'
perl -MPIPs -de '$s = PIPs->new->model("PIPs")->schema; $DB::single = 1;print'
Setting $DB::single makes perl stop before the *next* command. If there is no next command, it won't stop.
Though the other comments seem to address your issue, have you seen Enbugger?
Secondly, mentioning Devel::REPL also seems appropriate, though it isn't the same thing at all.