Subject: | Problem with Devel::ptkdb |
Date: | Thu, 10 Oct 2013 16:20:33 +0200 |
To: | bug-JSON-Path [...] rt.cpan.org |
From: | Henri-Damien LAURENT <henri-damien.laurent [...] fraudbuster.mobi> |
Hi,
thanks for this Module which does great job.
It appears that there is a problem when used in conjonction with
Devel::ptkdb as debugger.
test_jsonpath.pl :
use strict;
use warnings;
use JSON::Path;
my $object={"test"=>"me"};
my $jsonpath=JSON::Path->new('$.test');
my $a = $jsonpath->value($object);
$ perl test_jsonpath.pl
me
$ perl -d:ptkdb test_jsonpath.pl
JSON::Path::value is writeonly at /usr/share/perl5/Devel/ptkdb.pm line 4332.
I think this is owed to the fact that value can be both written and read.
But then, it is not clear to me where it should tell to the debugger
that value can be read and write.
Could you help in any way ?
--
Henri-Damien LAURENT
FraudBuster
Mail : henri-damien.laurent@fraudbuster.mobi
Mobile : +33 6 88 77 62 53
Skype : laurenthdl