Friday, April 15, 2011

How to activate Ptkdb as debugger for #Perl CGI's

A the top of file:

<markdown>

#!perl

#!/usr/bin/perl -d:ptkdb 

 

sub BEGIN {

    $ENV{'DISPLAY'} = ":0.0";

}

#!/usr/bin/perl

#...

some code

</markdown>

Then in shell:

<markdown>

#!bash

$>xhost +

</markdown>

 

No comments: