Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 116924
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: Mithun.Bhattacharya [...] citadel.com
Cc:
AdminCc:

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



Subject: DateTime crashed Devel::ptkdb
Date: Fri, 12 Aug 2016 20:16:04 +0000
To: "'bug-DateTime [...] rt.cpan.org'" <bug-DateTime [...] rt.cpan.org>
From: "Bhattacharya, Mithun" <Mithun.Bhattacharya [...] citadel.com>
DateTime doesn't seem to work nicely with Devel::ptkdb. Firstly if I monitor a DateTime object it reports a stringified version of the object. Secondly if a DateTime object is part of a bigger structure - adding the structure to the expression to be monitored simply crashes the GUI. This is how I reproduced the error. <quote> $ cat t.pl use DateTime; my $dt = DateTime->new( year => 1964, month => 10, day => 16, hour => 16, minute => 12, second => 47, ); %arr = (k => $dt); print %arr; </quote> If I step up to line 14 then $dt shows 1964-10-16T16:12:47 and if I try to see %arr then the GUI crashes with the following error. <quote> A DateTime object can only be compared to another DateTime object (DateTime=HASH(0x3066188), HASH(0x2a1c9c8)). at /cigdev64/borec/ExtData/2.0/opt/perl/lib/perl5/Devel/ptkdb.pm line 2658. </quote> I can run the same script with perl -d and DataDumper correctly shows the complete hash structure of the object both in $dt and %arr without crashing. I am using DateTime 1.34 Devel:,:ptkdb 1.1091 on perl 5.22.2 - Mithun Show quoted text
________________________________ CONFIDENTIALITY AND SECURITY NOTICE The contents of this message and any attachments may be confidential and proprietary. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, distributing or copying the contents.