develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #118169] subroutine arguments are no longer shown in perl debugger ( x @_ in perl -d)

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
May 26, 2013 00:33
Subject:
[perl #118169] subroutine arguments are no longer shown in perl debugger ( x @_ in perl -d)
Message ID:
rt-3.6.HEAD-2650-1369528425-239.118169-15-0@perl.org
On Fri May 24 22:24:07 2013, dotandimet@gmail.com wrote:
> 
> 
> This is a bug report for perl from dotan@corky.net,
> generated with the help of perlbug 1.39 running under perl 5.18.0.
> 
> 
> -----------------------------------------------------------------
> In perl 5.18.0, @_ isn't visible in the debugger (perl -d).
> You can't inspect it with x (eval/dump) or w (watch).
> 
> Example:
> perl -dE 'sub f { say $_ for (@_); $a = $_[1]; say $a;}; f(4,25,7);'
>    DB<1> s
>    ...
>    DB<1> x @_
>    empty array
> 
> -----------------------------------------------------------------
> ---
> Flags:
>      category=core
>      severity=high
> ---
> Site configuration information for perl 5.18.0:
> 
> Configured by dotandimet at Mon May 20 22:37:44 IDT 2013.
> 
> Summary of my perl5 (revision 5 version 18 subversion 0)
> configuration:
> 

This does seem to be a regression from 5.16.0:

#####
$ /usr/local/bin/perl5.16.0 -d 118169-debug.pl 

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::(118169-debug.pl:4):      use Data::Dumper;$Data::Dumper::Indent=1;
  DB<1> n
main::(118169-debug.pl:7):      f(4,25,7);
  DB<1> s
main::f(118169-debug.pl:10):        say $_ for (@_);
  DB<1> x @_
0  4
1  25
2  7
#####

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118169

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About