http://www.perlmonks.org?node_id=896581


in reply to Running Perl TK Debugger in Web Program

the perltk debugger has a special section about debugging CGI scripts.
have you read it?
have you followed these advices and, if so, what step caused you trouble?
  • Comment on Re: Running Perl TK Debugger in Web Program

Replies are listed 'Best First'.
Re^2: Running Perl TK Debugger in Web Program
by roho (Bishop) on Mar 31, 2011 at 10:45 UTC
    Thanks for your reply vkon, but as I mentioned I already know about adding -d:ptkdb to the perl header line to activate the Perl TK Debugger. My question is how to determine the name of the Perl program which gets executed when the Submit button is clicked on the web page.

    "Its not how hard you work, its how much you get done."

      given that this WEB server is probably at your control, and you even have trusted X11 connection to it, (i.e. DISPLAY), this means that you have full control on what perl is issued.

      So, it will be this perl that is specified on you # line

      #! /usr/local/bin/perl ....
        Thanks, but I'm afraid you still don't understand my original question. See scorpio17's answer. He provided the information I was looking for, which was how to locate and identify the name of the perl program to modify.

        "Its not how hard you work, its how much you get done."