聘我网

新概念招聘3.0

perl5db.pl的NonStop选项存在的意义是什么?

vote up0vote downstar

Sets nonstop mode. If a terminal's already been set up, it's too late; the debugger remembers the setting in case you restart, though. (source)

[root@ ~]# PERLDB_OPTS="NONSTOP=1" perl -d -e 'print 1'
1

如果不停下来,还能调试么?

 

1 个答复

vote up0vote downcheck
NonStop 

if true, no i/o is performed until interrupt.( source )

另外,一个很常用的技巧是:

$DB::single = 1 if ( ... my condition ....)

这样条件成立时便会停在下一行。

$single

1 - single-step, go into subs. The s command.(source)

链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.