Wednesday, June 26, 2013

Debugging Eclipse for Perl through a web browser on Windows

  1. Download Eclipse J2EE and unzip and make sure it works.
  2. Install Epic (Eclipse Perl Integration) by the following instructions.

3. Install perl – this is easy.
 
Install PadWalker
  1. Get the Padwalker package from http://search.cpan.org/dist/PadWalker/
  2. Get the dmake files by Gurusamy Sarathy (Google - dmake-4.1pl1-win32)
  3. Copy dmake files and padwalker files into C:\Dwimperl\perl\lib (That is for Dwimperl)
  4. generate the makefile by running the makefile.pl script from command line
perl makefile.pl
  1. Build the PadWalker object file by invoking the C make file
dmake makefile
dmake
dmake install --- this command seems to integrate it with perl

It looked like this (your perl\lib root directory might be different)
  1. Add a perl project to eclipse

  1. Add your cgi file to the project.
10. Add a "Debug Configuration" from the "Run" menu. It doesn't have to be in the apache directory like in this picture!!  You have to fill out all the tabs - I didn't do screen shots for all of them.
  1. On the browser tab above you can select the built in browser. Then press Debug to run your html file.  

    When you are finished you will be able to click buttons in your html - your cgi will run and the debugger will stop on your breakpoints.