raix / vscode-perl-debug

LOOKING FOR MAINTAINERS. Perl debugger extension for visual studio code
MIT License
63 stars 36 forks source link

Multiline string not display correctly #131

Open cristianpsg opened 4 years ago

cristianpsg commented 4 years ago

Hi, When you have a variable with multiple lines could either not show the content of the variable at all or just display the first or last line. Use the code below to reproduce the issue.

#!/usr/bin/perl

print "Testing\n";
my $foo = <<END_MESSAGE;
                    MULTIPLE LINES ISSUE 1
                    MULTIPLE LINES ISSUE 2
                    MULTIPLE LINES ISSUE 3
                    MULTIPLE LINES ISSUE 4
                    MULTIPLE LINES ISSUE 5
                    MULTIPLE LINES ISSUE 6
                    MULTIPLE LINES ISSUE 7
                    MULTIPLE LINES ISSUE 8
                    MULTIPLE LINES ISSUE 9
                    MULTIPLE LINES ISSUE 10
END_MESSAGE

my $foo2 = qq /
                    MULTIPLE LINES ISSUE 1
                    MULTIPLE LINES ISSUE 2
                    MULTIPLE LINES ISSUE 3
                    MULTIPLE LINES ISSUE 4
                    MULTIPLE LINES ISSUE 5
                    MULTIPLE LINES ISSUE 6
                    MULTIPLE LINES ISSUE 7
                    MULTIPLE LINES ISSUE 8
                    MULTIPLE LINES ISSUE 9
                    MULTIPLE LINES ISSUE 10
            /;

my $foo3 = $foo1.$foo2;

print "Done\n";
hoehrmann commented 4 years ago

Possibly fixed by #91