vscode-perl-debug
vscode-perl-debug copied to clipboard
Miscellaneous behavior of the script when setting a breakpoint
Hello, I'm Russian, used Google translator. When I set the breakpoint in the script, the script stops working.
There is a suspicion that this is due to the fact that the file from the disk is not correctly read, the last line from the file is read, here is the code:
sub OpenAndReadFile() {
my ($fileName) = @_;
die "Ошибка открытия файла $fileName" unless open my $FH, "<:encoding(utf8)", $fileName;
my $txt;
{
local $/ = "\r";
$txt = <$FH>;
}
close $FH;
return $txt;
}
gif: https://ibb.co/deBGSe
Hi @LazarenkoA sorry about the slow response time - what OS + perl version and distribution are you using?