第一次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