第一次perl用户,我正在尝试调试一些脚本以遵循项目逻辑和当然语法。在输入命令行后 使用Cygwin $perl调试器冻结
$ perl -d sample.pl
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::(sample.pl:5): print 'Hello world.'; # Print a message
DB<1>
它挂在DB < 1>线。提示时我无法输入任何内容。
有没有原因,为什么这篇文章不适合?或者如何不清楚?
这是实际的程序代码:
#!/usr/local/bin/perl
#
# Program to do the obvious
#
print 'Hello world.'; # Print a message
请添加导致调试器挂起的代码示例。另外,请查看是否可以减少显示问题的最小样本数。 – DVK 2010-06-11 18:49:24
此外,请尝试使用代码标记来显示代码/脚本输出......上述两个问题都可能导致了投票结果(我不是那个,所以我只能推测) – DVK 2010-06-11 18:52:53
只是为了确认 - 线是整个程序的程度? Thx – DVK 2010-06-11 19:07:01