Skip Menu |

This queue is for tickets about the IO-stringy CPAN distribution.

Report information
The Basics
Id: 2754
Status: resolved
Priority: 0/
Queue: IO-stringy

People
Owner: cwhitener [...] gmail.com
Requestors: cpan [...] ali.as
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.108
Fixed in: (no value)



Subject: Can't look at IO::Scalar object in debugger
Given perl -de 1 $string = ''; $handle = IO::Scalar->new( \$string ); the following occurs DB<5> x $handle 0 IO::Scalar=GLOB(0x804c1b4) -> *IO::Scalar::FH Can't locate object method "FILENO" via package "IO::Scalar" at /usr/lib/perl5/5.8.0/dumpvar.pl line 238. dumpvar::unwrap('IO::Scalar=GLOB(0x804c1b4)',3,-2) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 118 dumpvar::DumpElem('IO::Scalar=GLOB(0x804c1b4)',3,-2) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 223 dumpvar::unwrap('ARRAY(0x82ed988)',0,-1) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 33 main::dumpValue('ARRAY(0x82ed988)',-1) called at /usr/lib/perl5/5.8.0/perl5db.pl line 2047 DB::dumpit('GLOB(0x8069e94)','ARRAY(0x82ed988)') called at /usr/lib/perl5/5.8.0/perl5db.pl line 32 DB::eval called at /usr/lib/perl5/5.8.0/perl5db.pl line 1323 DB::DB called at -e line 1 This makes it nearly impossible to debug code when using IO::Scalar The entire script dies
From: julian [...] mehnle.net
I can confirm this, but I am not sure of how this should best be fixed. Perhaps a dummy FILENO() method could be added to IO::Scalar? And what about the other classes? This needs more research.
Hi Everyone, It looks like this has been resolved for some time now and the ticket was never updated. As I run the debugger the way you have, I do not encounter errors. Thanks, Chase