Camelcade / Devel-Camelcadedb

Perl module for debugging with Perl5 plugin for IntelliJ
Other
23 stars 9 forks source link

Report error when debugging perl scirpt which uses other module #35

Open mj8311 opened 5 years ago

mj8311 commented 5 years ago

When I try to debug following simple perl script:

use strict;     
use warnings;
use Data::Dumper;
my $a = undef;
if ($a == undef) {
    print 'good';
}
my $b = '23';
print $b;

Pycharm shows error message:

Listening on localhost:11862... C:\Perl\bin\perl.exe -d:Camelcadedb D:\a.pl (1)Connecting to the IDE from process 17116 at localhost:11862... Connected Disconnected Data/Dumper.pm did not return a true value at D:\a.pl line 3, line 1. BEGIN failed--compilation aborted at D:\a.pl line 3, line 1.

Process finished with exit code 255

If I remove line "use Data::Dumper;" from script. Debugger works.

My environment: pycharm 2018.2.3(Build #PY-182.4323.49) Perl5 plugin version: 2018.2.1 Devel::Camelcadedb version: 2017.100.3 JRE version: 1.8.0_152-release-1248-b8 amd64 Perl version: v5.10.1 OS: Win10 Version 1803

hurricup commented 5 years ago

What perl are you using?

mj8311 commented 5 years ago

It is ActivePerl v5.10.1 built for MSWin32-x86-multi-thread