Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document perl5i use as debugger #257

Open
grtodd opened this issue May 13, 2013 · 0 comments
Open

Document perl5i use as debugger #257

grtodd opened this issue May 13, 2013 · 0 comments

Comments

@grtodd
Copy link

grtodd commented May 13, 2013

Is there missing documentation regarding the use of perl5i in the debugger? This works:

perl5i -e '$n = "2"; say "numeric!" if $n->is_number;'              
numeric!

and so does this:

perl5i -de '$n = "2"; say "numeric!" if $n->is_number;' 

Loading DB routines from perl5db.pl version 1.37
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(/tmp/perl5i.nVVv5i:1):   $0 = '-e';
  DB<1> n                                                                                                           
main::(-e:1):   $n = "2"; say "numeric!" if $n->is_number;
  DB<1> n                                                                                                           
main::(-e:1):   $n = "2"; say "numeric!" if $n->is_number;
  DB<1> n                                                                                                           
numeric!

But bringing up the debugger in the classic -de1 mode I get this:

 perl -de1

Loading DB routines from perl5db.pl version 1.37
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   1
  DB<1>  use perl5i::latest;                                                                                        

  DB<2> $n = 42;                                                                                                    

  DB<3> say "It's a number"   if $n->is_number;                                                                    
Can't call method "is_number" without a package or object reference at (eval 104)[/usr/local/lib/perl5/5.16.2/perl5db.pl:646] line 2.

  DB<4>   

Adding use indirect; starting with -Mperl5i::latest ; explictly calling 'use autobox'; or using perl5i -de1 doesn't improve the situation. What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant