2013-03-13 108 views
1

我很想能够做到像:有没有办法在命令行上发出样板调试器命令?

perl -d my-program.pl -c 'b postpone Foo::Bar::some_func' 

即指定为perl -d,我会在调试程序的提示,即b postpone Foo::Bar::some_func通常输入命令调用的一部分。

+0

是否会提示'perl -pe'BEGIN {print“b postpone Foo :: Bar :: some_func \ n”}'| perl -d my-program.pl',但调试器不从STDIN读取。 – ikegami 2013-03-13 18:43:23

+0

@ikegami drats,挫败! – gcbenison 2013-03-13 18:45:30

+2

从'man perldebug','@DB :: typeahead'看起来非常合适,但是:“请注意,@DB :: typeahead不是受支持的接口,在将来的发行版中可能会有所更改。” – gcbenison 2013-03-13 19:02:29

回答

相关问题