Menu

#296 Error Parsing Debugger Variables on hash declaration

v0.5.x
closed-duplicate
Debugger (177)
5
2006-09-04
2006-09-03
mdykierek
No

Hash declaration with 'my' keyword as in example below:
my %INI_VALUES; # Step Into / Over -> Error
print "\n";
causes 'Error Parsing Debugger Variables' with the
following Details:
Error Parsing Debugger Variables
*******************************
*******************************
+++++++Error Parsing Vars++++++
*******************************
*******************************
NS0000000b%INI_VALUESUse of uninitialized value in
string eq at
C:/eclipse_workspaces/default/.metadata/.plugins/org.epic.debug/dumpvar_epic.pm
line 233.
at
C:/eclipse_workspaces/default/.metadata/.plugins/org.epic.debug/dumpvar_epic.pm
line 233
dumpvar_epic::unwrap('HASH(0x1a9ecb0)', 3, -1)
called at
C:/eclipse_workspaces/default/.metadata/.plugins/org.epic.debug/dumpvar_epic.pm
line 399
dumpvar_epic::dumplex('%INI_VALUES',
'HASH(0x1a9ecb0)', -1) called at (eval
14)[C:/Perl/lib/perl5db.pl:628] line 2
eval '($@, $!, $^E, $,, $/, $\\, $^W) =
@saved;package main; $^D = $^D | $DB::db_stop;
;{eval { require PadWalker; PadWalker->VERSION(0.08)
}or print $DB::OUT ("PadWalker module not found -
please install\\n");do \'dumpvar_epic.pm\' unless
defined &dumpvar_epic::dumpvar_epic;defined
&dumpvar_epic::dumpvar_epic or print $DB::OUT
"dumpvar_epic.pl not available.\\n";my $h = eval {
PadWalker::peek_my(2) };my @vars = split (\'
\',\'\');$@ and $@ =~ s/ at .*//, print $DB::OUT
($@);my $savout =
select($DB::OUT);dumpvar_epic::dumplex($_,$h->{$_},defined
$option{dumpDepth} ? $option{dumpDepth} : -1,@vars) for
sort keys %$h;print "E";select($savout);};;
;' called at C:/Perl/lib/perl5db.pl line 628
DB::eval called at C:/Perl/lib/perl5db.pl line 3410
DB::DB called at
C:/eclipse_workspaces/default/varialbe_parsing_error/test.pl
line 2
S0000000e <empty hash> E-------------------------------
-------------------------------
+++++++Error Parsing Vars++++++
-------------------------------
-------------------------------

If 'my' is removed, the error does not occur. This
conflicts with the recommended use of 'use strict;'.

Discussion

  • Jan Ploski

    Jan Ploski - 2006-09-04

    Logged In: YES
    user_id=86907

    Closing as duplicate of #1546237.
    Upgrade to the current version of testing/stable to get the
    fix.

     
  • Jan Ploski

    Jan Ploski - 2006-09-04
    • status: open --> closed-duplicate
     
  • mdykierek

    mdykierek - 2006-09-05

    Logged In: YES
    user_id=1589679

    Still occurs on 0.5.4.

     
  • Jan Ploski

    Jan Ploski - 2006-09-05

    Logged In: YES
    user_id=86907

    Fixed in 0.5.5.

     
  • mdykierek

    mdykierek - 2006-09-05

    Logged In: YES
    user_id=1589679

    Confirmed. Excellent job. I am impressed with the response
    time! Thank you very much.

     

Log in to post a comment.