in reply to CGI PERL Remote Debugging

I assume that you have SSH access to the server, and PuTTY or another terminal slient on your Windows machine.

If you do, it is as simple as this:

  1. Open your favourite terminal client.
  2. cd to the directory where the script is located
  3. run a command like the following:
    perl -dw script.pl
    (Notice the -d switch)

Use the perl debugger provided, which is quite good. If you have VNC and X11 on the server, Devel-ptkdb is very handy.

~Thomas~

Replies are listed 'Best First'.
Re^2: CGI PERL Remote Debugging
by ujanba01 (Initiate) on Dec 26, 2011 at 10:05 UTC

    Thanks for the Response Thomas.

    Above steps did not helped for my actual question. I need to debug the PERL CGI code from Windows(client) using IDE.

    The source code exists and runs in a Linux server. Now I use to connect Linux server using Putty and debugging the PERL code. However, to ease the job, it would be fine if we have a Komodo kind of IDE but free or open, which has the ability to do remote debugging.

    Note: The linux server has limited access to the developer, so installing VNC or X11 in the server is not possible as of now.

      Like thomas895 said, all you need is ssh2 access, no X11 required. Once you connect, you change the shebang for the CGI to <C>#!/usr/bin/perl -d and you set perl5db.pl RemotePort option to localhost:666119 ...

      http://docs.activestate.com/komodo/4.4/debugperl.html# Debugging Perl

      http://community.activestate.com/forum/help-interactive-debugging-windows# Help: Interactive debugging on Windows

      http://plosquare.blogspot.com/2009/04/debugging-modperl-applications-with.html# Debugging mod_perl with EPIC

      http://www252.pair.com/comdog/mastering_perl/Chapters/04.debugger.html# Mastering Perl: Debugging Perl

      http://wiki.eprints.org/w/EclipseEpicPerlDebug

      Enabling GUI Debugging under Mod_Perl

      http://books.google.com/books?id=UDUmoHOUXiMC&pg=PA142&lpg=PA142&dq=perl5db+Remote+Port+tutorial&source=bl&ots=_7fyyfZ2VK&sig=IBHqYwf7yXF0JKKx0Oh2VsZF9v0&hl=en

      Devel::ebug, ebug_http, ebug-client, ebug-server