1
我很想能够做到像:有没有办法在命令行上发出样板调试器命令?
perl -d my-program.pl -c 'b postpone Foo::Bar::some_func'
即指定为perl -d
,我会在调试程序的提示,即b postpone Foo::Bar::some_func
通常输入命令调用的一部分。
我很想能够做到像:有没有办法在命令行上发出样板调试器命令?
perl -d my-program.pl -c 'b postpone Foo::Bar::some_func'
即指定为perl -d
,我会在调试程序的提示,即b postpone Foo::Bar::some_func
通常输入命令调用的一部分。
从man perldebug
,你可以使用source file
把一些常用命令的文件和来源,启动调试后手动。
是否会提示'perl -pe'BEGIN {print“b postpone Foo :: Bar :: some_func \ n”}'| perl -d my-program.pl',但调试器不从STDIN读取。 – ikegami 2013-03-13 18:43:23
@ikegami drats,挫败! – gcbenison 2013-03-13 18:45:30
从'man perldebug','@DB :: typeahead'看起来非常合适,但是:“请注意,@DB :: typeahead不是受支持的接口,在将来的发行版中可能会有所更改。” – gcbenison 2013-03-13 19:02:29