<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Perl remote debugging - Comments</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging</link>
 <description>Comments for &quot;Perl remote debugging&quot;</description>
 <language>en</language>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3066</link>
 <description>&lt;p&gt;I have forgoten following:&lt;/p&gt;
&lt;p&gt;[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# telnet 192.168.100.1 9000&lt;br /&gt;
Trying 192.168.100.1...&lt;/p&gt;
&lt;p&gt;[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# perl -d /home/perl/utv/test_01.pl&lt;br /&gt;
Unable to connect to remote host: 192.168.100.1:9000 (Bad file descriptor)&lt;br /&gt;
Running program outside the debugger...&lt;br /&gt;
Hallo World![root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]#&lt;/p&gt;
&lt;p&gt;Can PHP XDEBUG allocate port 9000 for his self?&lt;/p&gt;
&lt;p&gt;I must also tell you that i have closed my localy windows firewall.&lt;/p&gt;
&lt;p&gt;Any other suggestions.&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 13:39:11 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3066 at http://community.activestate.com</guid>
</item>
<item>
 <title>Can you try the command I wrote down?</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3065</link>
 <description>&lt;p&gt;I suggested this:&lt;/p&gt;
&lt;p&gt;telnet 192.168.110.1 9000&lt;/p&gt;
&lt;p&gt;You said you tried this:&lt;/p&gt;
&lt;p&gt;telnet 192.168.100.1 9000&lt;/p&gt;
&lt;p&gt;Since xdebug is successfully using&lt;br /&gt;
the IP address 192.168.110.1, why do&lt;br /&gt;
you think Perl should be using&lt;br /&gt;
192.168.100.1?&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 13:28:32 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 3065 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3064</link>
 <description>&lt;p&gt;login as: root&lt;br /&gt;
root@192.168.116.10&#039;s password:&lt;br /&gt;
Last login: Wed Sep 26 08:26:56 2007 from 192.168.110.1&lt;br /&gt;
[root@trfmlmftp ~]# perl_dbgp_path=/home/perl/Komodo-PerlRemoteDebugging-4.1.1&lt;br /&gt;
[root@trfmlmftp ~]# cd /home/perl/Komodo-PerlRemoteDebugging-4.1.1/&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# ls -l&lt;br /&gt;
total 168&lt;br /&gt;
drwxr-xr-x  7 jhejzlar jhejzlar   4096 Jun  7 03:04 DB&lt;br /&gt;
-rwxr-xr-x  1 jhejzlar jhejzlar   1368 Jun  7 03:04 LICENSE.txt&lt;br /&gt;
-rwxr-xr-x  1 jhejzlar jhejzlar 137675 Jun  7 03:04 perl5db.pl&lt;br /&gt;
drwxr-xr-x  3 jhejzlar jhejzlar   4096 Jun  7 03:04 Syntax&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# export PERL5LIB=$perl_dbgp_path&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# export PERL5DB=&quot;BEGIN {require q,$perl_dbgp_path/perl5db.pl,}&quot;&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# export DBGP_IDEKEY=&quot;jhejzlar&quot;&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]# telnet 192.168.100.1 9000&lt;br /&gt;
Trying 192.168.100.1...&lt;br /&gt;
Quit&lt;br /&gt;
[root@trfmlmftp Komodo-PerlRemoteDebugging-4.1.1]#&lt;/p&gt;
&lt;p&gt;Telnet is only trying never connected. But PHP debugger by xdebug works through the same port 9000. Is anything different with using of perl debugging versus PHP?&lt;/p&gt;
&lt;p&gt;Yes, port 9000 is sett explicitly. Down is text: Summary: Komodo will listen fÃ¶r debugging connections on port 9000. Curently Komodo is listening on port 9000. When I click on Current connection state The debugger listener pop up windows shows me the host port is 9000 and 0 Total Connections.&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 13:25:21 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3064 at http://community.activestate.com</guid>
</item>
<item>
 <title>Is the port set explicitly?</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3057</link>
 <description>&lt;p&gt;Is it possible that the Debugger Connection preference has changed?&lt;/p&gt;
&lt;p&gt;Under Edit|Preferences|Debugger|Connection there&#039;s a setting for either using a system-provided free port or setting a specific port. I&#039;m assuming you have this set explicitly to 9000. &lt;/p&gt;
&lt;p&gt;Might be worth checking Debug|Listener Status to see that it&#039;s listening on the right port.&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 12:48:51 -0700</pubDate>
 <dc:creator>troyt</dc:creator>
 <guid isPermaLink="false">comment 3057 at http://community.activestate.com</guid>
</item>
<item>
 <title>How to test a port</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3055</link>
 <description>&lt;p&gt;1. Make sure Komodo is waiting on port 9000.&lt;/p&gt;
&lt;p&gt;2. On a remote machine, in a shell, type this:&lt;/p&gt;
&lt;p&gt;telnet 192.168.110.1 9000&lt;/p&gt;
&lt;p&gt;You should see something like this:&lt;/p&gt;
&lt;p&gt;Trying 192.168.110.1...&lt;br /&gt;
Connected to . (127.0.0.1).&lt;br /&gt;
Escape character is &#039;^]&#039;.&lt;/p&gt;
&lt;p&gt;At this point type Ctrl-left-square-bracket, to get this:&lt;/p&gt;
&lt;p&gt;telnet&amp;gt;&lt;/p&gt;
&lt;p&gt;Here type &#039;q&#039; or Ctrl-D to end the telnet session.&lt;/p&gt;
&lt;p&gt;Komodo should report another connection.  If this doesn&#039;t&lt;br /&gt;
happen, there might be a firewall problem, and you might&lt;br /&gt;
want to read up on the Komodo debugger proxy.&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 12:31:09 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 3055 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3052</link>
 <description>&lt;p&gt;Hi ericp,&lt;/p&gt;
&lt;p&gt;As you could se I was using the same port as xdebug did. Could I find any more information why perl doesn&#039;t use port 9000? It seams to be perl problem. Can I use any special perl script to test port conection to 192.168.100.1 though port 9000? &lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 12:17:56 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3052 at http://community.activestate.com</guid>
</item>
<item>
 <title>Try these changes</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3043</link>
 <description>&lt;p&gt;1. Drop the line that sets DBGP_IDEKEY.  You can do this in the&lt;br /&gt;
current session:&lt;/p&gt;
&lt;p&gt;export DBGP_IDEKEY=&lt;/p&gt;
&lt;p&gt;There should be nothing after the &quot;=&quot;&lt;/p&gt;
&lt;p&gt;2. Change the port to be the same one xdebug uses:&lt;/p&gt;
&lt;p&gt;export PERLDB_OPTS=&quot;remotePort=192.168.110.1:9000&quot;&lt;/p&gt;
&lt;p&gt;&quot;Bad file descriptor&quot; means the given port doesn&#039;t work.&lt;br /&gt;
It&#039;s a Perl error message, not Komodo&#039;s.  Otherwise it&lt;br /&gt;
would be more informative (one would hope).&lt;/p&gt;
&lt;p&gt;For Perl debugging the DBGP_IDEKEY variable is only needed&lt;br /&gt;
when you go through a proxy.&lt;/p&gt;
</description>
 <pubDate>Thu, 27 Sep 2007 10:01:45 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 3043 at http://community.activestate.com</guid>
</item>
<item>
 <title>perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3038</link>
 <description>&lt;p&gt;ericp&lt;/p&gt;
&lt;p&gt;sorry, but the new commandos does not work again. I have got following message:&lt;/p&gt;
&lt;p&gt;login as: perl&lt;br /&gt;
perl@192.168.116.10&#039;s password:&lt;br /&gt;
Last login: Wed Sep 26 12:24:10 2007 from 192.168.110.1&lt;br /&gt;
[perl@trfmlmftp ~]$ perl_dbgp_path=/home/perl/Komodo-PerlRemoteDebugging-4.1.1&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5LIB=$perl_dbgp_path&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5DB=&quot;BEGIN {require q,$perl_dbgp_path/perl5db.pl,}&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERLDB_OPTS=&quot;remotePort=192.168.100.1:9000&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export DBGP_IDEKEY=&quot;perl&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ perl -d /home/perl/utv/test_01.pl&lt;br /&gt;
Unable to connect to remote host: 192.168.100.1:9000 (Bad file descriptor)&lt;br /&gt;
Running program outside the debugger...&lt;br /&gt;
Hallo World![perl@trfmlmftp ~]$&lt;/p&gt;
&lt;p&gt;What the system means with Bad file descriptor and how works DBGP_IDEKEY?&lt;br /&gt;
F.Y.I. here is my debugging setup for PHP which works nice with Komodo IDE.&lt;/p&gt;
&lt;p&gt;zend_extension=&quot;/usr/lib/php/xdebug/xdebug.so&quot;&lt;br /&gt;
xdebug.remote_enable=1&lt;br /&gt;
xdebug.remote_handler=dbgp&lt;br /&gt;
xdebug.remote_mode=req&lt;br /&gt;
xdebug.remote_host=192.168.110.1&lt;br /&gt;
xdebug.remote_port=9000&lt;br /&gt;
xdebug.idekey=jhejzlar&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Wed, 26 Sep 2007 23:44:11 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3038 at http://community.activestate.com</guid>
</item>
<item>
 <title>I made a mistake in the syntax for the BEGIN block</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3020</link>
 <description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;export PERL5DB=&quot;BEGIN {require q,$perl_dbgp_path/perl5db.pl,}&quot;&lt;/p&gt;
&lt;p&gt;The &quot;/&quot; was ending the string, which is why the require failed.&lt;/p&gt;
</description>
 <pubDate>Wed, 26 Sep 2007 07:51:51 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 3020 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3019</link>
 <description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;I have followed your recomendations and get following message:&lt;/p&gt;
&lt;p&gt;login as: perl&lt;br /&gt;
perl@192.168.116.10&#039;s password:&lt;br /&gt;
Last login: Wed Sep 26 08:33:13 2007 from 192.168.110.1&lt;br /&gt;
[perl@trfmlmftp ~]$ perl_dbgp_path=/home/perl/Komodo-PerlRemoteDebugging-4.1.1&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5LIB=$perl_dbgp_path&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5DB=&quot;BEGIN {require q/$perl_dbgp_path/perl5db.pl}&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export DBGP_IDEKEY=&quot;perl&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ perl -d /home/perl/utv/test_01.pl&lt;br /&gt;
Bareword found where operator expected at /home/perl/utv/test_01.pl line 0, near &quot;q//home&quot;&lt;br /&gt;
syntax error at /home/perl/utv/test_01.pl line 0, near &quot;q//home&quot;&lt;br /&gt;
BEGIN not safe after errors--compilation aborted.&lt;br /&gt;
[perl@trfmlmftp ~]$&lt;/p&gt;
&lt;p&gt;I don&#039;t know what the system tells about. I have not any bareword on line 0:&lt;br /&gt;
Here is my script:&lt;br /&gt;
#!/usr/bin/perl -w&lt;br /&gt;
print &quot;Hallo World!&quot;;&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Wed, 26 Sep 2007 04:10:12 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3019 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugger</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3018</link>
 <description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;regarding different addresses the IP address 192.168.116.10:9000 is the server&#039;s own IP address. 192.168.100.1 si Ip address of my Komodo client, but why the message tells about server address I don&#039;t know.&lt;br /&gt;
Here follows my test file test_01.pl file here. I can&#039;t see any errors there.&lt;br /&gt;
#!/usr/bin/perl -w&lt;br /&gt;
print &quot;Hallo World!&quot;;&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <pubDate>Wed, 26 Sep 2007 03:56:13 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3018 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3016</link>
 <description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;I don&#039;t know why thise IP addresses are different. Now I have done everthing in accordance to your advice. Here is my log. It is not so much I understand there:&lt;/p&gt;
&lt;p&gt;login as: perl&lt;br /&gt;
perl@192.168.116.10&#039;s password:&lt;br /&gt;
Last login: Wed Sep 26 08:23:38 2007 from 192.168.110.1&lt;br /&gt;
[perl@trfmlmftp ~]$ perl_dbgp_path=/home/perl/Komodo-PerlRemoteDebugging-4.1.1/&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5LIB=$perl_dbgp_path&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERL5DB=&quot;BEGIN{ require q/$perl_dbgp_path/perl5db.pl}    &quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ export DBGP_IDEKEY=&quot;perl&quot;&lt;br /&gt;
[perl@trfmlmftp ~]$ perl -d /home/perl/utv/test_01.pl&lt;br /&gt;
Bareword found where operator expected at /home/perl/utv/test_01.pl line 0, near     &quot;q//home&quot;&lt;br /&gt;
Bareword found where operator expected at /home/perl/utv/test_01.pl line 1, near     &quot;#!/usr&quot;&lt;br /&gt;
  (Might be a runaway multi-line // string starting on line 0)&lt;br /&gt;
        (Missing operator before usr?)&lt;br /&gt;
syntax error at /home/perl/utv/test_01.pl line 0, near &quot;q//home&quot;&lt;br /&gt;
Missing right curly or square bracket at /home/perl/utv/test_01.pl line 2, at en    d of line&lt;br /&gt;
Execution of /home/perl/utv/test_01.pl aborted due to compilation errors.&lt;br /&gt;
[perl@trfmlmftp ~]$&lt;/p&gt;
&lt;p&gt;The program is same without any changes.&lt;/p&gt;
&lt;p&gt;/Jaroslav&lt;/p&gt;
</description>
 <pubDate>Wed, 26 Sep 2007 00:39:30 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">comment 3016 at http://community.activestate.com</guid>
</item>
<item>
 <title>Why are the IP numbers different?</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging#comment-3006</link>
 <description>&lt;p&gt;You told Perl to connect to&lt;br /&gt;
export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;/p&gt;
&lt;p&gt;but the error message is:&lt;br /&gt;
   Unable to connect to remote host: 192.168.116.10:9000 ...&lt;/p&gt;
&lt;p&gt;Could you retry with these environment variables:&lt;/p&gt;
&lt;p&gt;perl_dbgp_path=/home/perl/Komodo-PerlRemoteDebugging-4.1.1&lt;br /&gt;
export PERL5LIB=$perl_dbgp_path&lt;br /&gt;
export PERL5DB=&quot;BEGIN { require q/$perl_dbgp_path/perl5db.pl}&quot;&lt;br /&gt;
export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;br /&gt;
export DBGP_IDEKEY=&quot;perl&quot;&lt;/p&gt;
&lt;p&gt;- Eric&lt;/p&gt;
</description>
 <pubDate>Tue, 25 Sep 2007 09:54:53 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 3006 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl remote debugging</title>
 <link>http://community.activestate.com/forum-topic/perl-remote-debugging</link>
 <description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I am trying to get working PERL remote debugging on my RHEL4. I hade created a directory for my perl scripts as following: /home/perl/utv and in this directori is a simple perl script test_01.pl: &lt;/p&gt;
&lt;p&gt;#!/usr/bin/perl -w&lt;br /&gt;
print &quot;Hallo World!&quot;;&lt;/p&gt;
&lt;p&gt;Then I downloaded activestates Komodo 4.1 Perl remote Debugging for linux and unpacked this to /home/perl/Komodo-PerlRemoteDebugging-4.1.1&lt;br /&gt;
Then I configured environment variables as following:&lt;/p&gt;
&lt;p&gt;[root@trfmlmftp utv]# export PERL5LIB=/home/perl/Komodo-PerlRemoteDebugging-4.1.1/&lt;br /&gt;
[root@trfmlmftp utv]# export PERLDB_OPTS=&quot;RemotePort=192.168.100.1:9000&quot;&lt;br /&gt;
[root@trfmlmftp utv]# export DBGP_IDEKEY=&quot;perl&quot;&lt;/p&gt;
&lt;p&gt;The I configured my Komodo IDE 4.1.1 as following:&lt;br /&gt;
Server type: SCP&lt;br /&gt;
Hostname: ip address&lt;br /&gt;
port:22&lt;br /&gt;
user name perl (configured user of RHEL4 with all needed access)&lt;br /&gt;
password&lt;br /&gt;
Default path: /home/perl/utv&lt;/p&gt;
&lt;p&gt;as last configuration step I started Listen for debugging connection in Komodo IDE.&lt;br /&gt;
Then I run test_01.pl script as following:&lt;br /&gt;
perl -d /home/perl/utv/test_01.pl&lt;/p&gt;
&lt;p&gt;and I get back this message:&lt;br /&gt;
Unable to connect to remote host: 192.168.116.10:9000 (Bad file descriptor)&lt;br /&gt;
Running program outside the debugger...&lt;/p&gt;
&lt;p&gt;I must to tell you when I am using XDEBUG remoten debugging for PHP and it works nice also through port 9000. I am connected to RHEL4 by VPN tunell. The Totaly connection number never increased with perl debugging, only when I debugg PHP.&lt;/p&gt;
&lt;p&gt;Can anybode help me please?&lt;br /&gt;
Thanks for any sugestions.&lt;/p&gt;
&lt;p&gt;/ Jaroslav&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/perl-remote-debugging#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-support-0">Komodo support</category>
 <category domain="http://community.activestate.com/os/red-hat-fedora-core">Red Hat / Fedora Core</category>
 <pubDate>Tue, 25 Sep 2007 05:05:14 -0700</pubDate>
 <dc:creator>Jaroslav</dc:creator>
 <guid isPermaLink="false">1457 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
