Could someone confirm that Komodo won’t start debugging when std handles are reopened in perl script under Windows OS?
#ms-1251 – the current active code page in Windows OS
#comment the next line so that debugging starts in Komodo
use open “:encoding(ms-1251)”, ‘:std’;
#or comment the next line so that debugging starts in Komodo
my @cols = qw(a,b);
print ‘Hello world’;
Please note that Perl process starts and hangs. So, kill the perl process after trying to start debugging in Komodo. However, debugging via Perl debugger in console works fine. The reason is that Perl outputs warning on
qw(a,b) when starting, but stdout is reopened by the script, i.e. the perl process, and Komodo fails to start debugging. In other words, when Perl outputs any messages after parsing a script and “:std” handles are reopened by it, Komodo does not start debugging, and the perl process hangs. When Perl outputs any warning or message into stderr from the script and “:std” was reopened, the debugging also hangs in Komodo.