本文主要是介绍Windows下为Eclipse安装PadWalker(为无法运行PPM的准备),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
安装PadWalker之前必须先安装ActivePerl,下载地址为:ActivePerl Downloads
只有安装了padwalker,Eclipse才能调试Perl。
下面介绍padwalker的安装步骤:
1. padwalker下载地址: http://www.bribes.org/perl/ppm/
2. 解压下载的文件
4. 拷贝 blib/lib/PadWalker.pm 到 Perl/lib(你的安装路径)
5. 拷贝 blib/arch/auto/PadWalker 到 Perl/lib/auto
6. 测试
新建一个*.pl文件,写入以下内容
my $input = <STDIN>; #input from user
print $input;
然后在print $input;处设置断点,右击debug as -> perl 即可测试。
下面为原文:
1. Download http://www.bribes.org/perl/ppm/PadWalker-1.6-PPM510.tar.gz
2. Extract the downloaded file to "D:/Download/padwalkerWin/"
You can replace the "D:/Download/padwalkerWin" as your folder
3. After extract you will see following folders
D:/Download/padwalkerWin/blib
4. Copy D:/Download/padwalkerWin/blib/lib/PadWalker.PM to F:/Perl/lib
"F:/Perl" is my perl install folder. you should use your own setting.
5. Copy D:/Download/padwalkerWin/blib/arch/auto/PadWalker
to F:/Perl/lib/auto
6. Test your perl in eclipse.
#Test.pl
my $input = <STDIN>; #input from user
print $input;
set break point at "print $input;"
You should see the input value for $input in variables panel.
Above step is tested for EasyEclipse 1.3 + ActivePerl-5.10.0.1002.
这篇关于Windows下为Eclipse安装PadWalker(为无法运行PPM的准备)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!