perl - 修复 Perl 调试器

标签 perl debugging

我最近一直在研究各种 Perl IDE(EPICKomodo 等),其中大多数都需要安装 CPAN 模块。很公平,但所有的安装似乎都破坏了库存调试器(就价格而言,这真是太好了)。所以现在,当我进入调试器 (perl -d -e 0) 时,我得到了错误,并且“重新启动”似乎给出了更多错误。

如何修复安装?

我正在使用 ActiveState Perl,版本 5.10.0。

> perl -d -e 0

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `perldoc perldebug' for more help.

main::(-e:1):   0

SetConsoleMode failed, LastError=|6| at C:/Perl/lib/Term/ReadKey.pm line 265.
 at C:/Perl/site/lib/Term/ReadLine/readline.pm line 1581
        readline::readline('  DB<1> ') called at C:/Perl/site/lib/Term/ReadLine/
Perl.pm line 11
        Term::ReadLine::Perl::readline('Term::ReadLine::Perl=ARRAY(0x1a9c26c)',
'  DB<1> ') called at C:/Perl/lib/perl5db.pl line 6414
        DB::readline('  DB<1> ') called at C:/Perl/lib/perl5db.pl line 2227
        DB::DB called at -e line 1
  DB<1> R
Warning: some settings and command-line options may be lost!
Your vendor has not defined POSIX macro _SC_OPEN_MAX, used at C:/Perl/lib/perl5d
b.pl line 3320
 at C:/Perl/lib/POSIX.pm line 56
        POSIX::AUTOLOAD() called at C:/Perl/lib/perl5db.pl line 3320
        DB::DB called at -e line 1
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.

  DB<1>

最佳答案

我不知道 Komodo,但我确实记得读过一些关于 Perl 调试器遇到 Epic/Eclipse IDE 问题的文章。这是问题吗?

EPIC 文档中没有任何内容表明您必须安装特定模块才能让 EPIC 工作。如果您必须为 Komodo 安装模块,我会感到惊讶,因为它是 ActiveState 自己的 IDE。

您可以将 CPAN 与 ActivePerl 一起使用。但是,您将需要安装 nmake 或 CPAN 的 dmake 并且可能需要安装 C 编译器,具体取决于模块。已记录 here .但是,ActiveState 建议您使用 PPM 实用程序,因为它已经为您编译了所有内容。

您也可以尝试 Strawberry Perl 而不是 Active State。 Strawberry Perl 已经包含了整个 MinGW 环境,因此它保证与 Unix 版本和所有 CPAN 模块 100% 兼容。

关于perl - 修复 Perl 调试器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14106093/

相关文章:

perl - perl 在字符串中是否有等同于 TCL expr

linux - 使用 Zoidberg 或 Term::Shell ( Perl 模块 ) 哪一个更好地在 Perl 中实现自定义 shell?

C编程...链表指针迭代

javascript - 根据 jQuery,我的自定义函数不是函数

css - Google Chrome 开发者工具不在 css 旁边显示 css 文件名

javascript - VS-Code 不会在 Promise 内部出现异常时暂停调试器

用于生成 .doc 或 .docx 文档文件的 Perl 模块

regex - 设置 perl 正则表达式搜索从长字符串中的给定位置开始

perl - 当散列有很多键时按值对散列进行排序

c++ - 远程调试 windows 8.1 驱动 Visual studio 2013