Perl debug in eclipse

 

1.下载并安装windows下的Perl ActivePerl,最好是5.8,或者之后的版本,参考  http://www.epic-ide.org/faq.php#debug

 

2.Eclipse中安装EPIC,使Eclipse具有编辑Perl的功能:
Help->Software Update->Find and Install: select for new features to install.
name:EPIC
new remote site 中填入http://e-p-i-c.sourceforge.net/updates/testing。finish.

在windows->Preference中,Perl EPIC中,填写Perl执行脚本的目录,Perl executable: "C:/Perl/bin/perl.exe"

 

3.只有安装padwalker,Eclipse调试Perl的时候才能看到变量的值:
运行Perl Package Manager。Edit->Perferences->Respositories中填入http://www.bribes.org/perl/ppm/。然后安装padwalker。

命令行运行: ppm install PadWalker

 

4. 建工程。You can then create a Perl project by selecting File > New > ProjectPerl > Perl Project. Then it is best to switch to the Perl perspective using Window > Open Perspective > Other..., then selecting Perl. You can then add a perl file using File > New > Perl File, and, once you have added content, running by right-clicking on the file and select Run As > Perl Local. Note that the console will not open automatically if the program that you are running sends output to the console. 

 

5. 使用 正则表达式工具。 To use the Regular Expression tester, open the Regex view by selecting Window > Show View > Others... then EPIC > RegExp 

To use the debugger, you need to switch to the Debug perspective. It is possible to use the debugger without installing PadWalker, but in this case local variables won't be shown.

 

参考此blog: http://blog.chinaunix.net/u1/52454/showart_726444.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值