Line 25: |
Line 25: |
| q - quit | | q - quit |
| | | |
− | ===Remotely using an IDE=== | + | ===Remote debugging using an IDE=== |
| | | |
| I have been using Komodo IDE courtesy of an Open Source Developers licence from [http://komodoide.com/ Activestate] | | I have been using Komodo IDE courtesy of an Open Source Developers licence from [http://komodoide.com/ Activestate] |
| | | |
| They produce an Open Source 'light' version of the full IDE called [http://komodoide.com/komodo-edit/ Komodo Edit] but it does not have the debug facilities. | | They produce an Open Source 'light' version of the full IDE called [http://komodoide.com/komodo-edit/ Komodo Edit] but it does not have the debug facilities. |
− |
| |
− | ====Server setup====
| |
− |
| |
− | ====Single machine setup====
| |
| | | |
| The simplest mode to use with Komodo IDE is to just use the IDE as a debugger to step through code. Code on the remote server can be edited if you have sufficient permissions. | | The simplest mode to use with Komodo IDE is to just use the IDE as a debugger to step through code. Code on the remote server can be edited if you have sufficient permissions. |
Line 40: |
Line 36: |
| | | |
| This will enable us to work with one desktop and one server. See the section on debug proxy for multiple connections | | This will enable us to work with one desktop and one server. See the section on debug proxy for multiple connections |
| + | |
| + | ====Server setup==== |
| | | |
| From your installed Komodo directory we need to copy a set of files to the server. | | From your installed Komodo directory we need to copy a set of files to the server. |
Line 54: |
Line 52: |
| export PERLDB_OPTS=RemotePort=your.desktop.i.p:9020 async=1 | | export PERLDB_OPTS=RemotePort=your.desktop.i.p:9020 async=1 |
| | | |
− | Note: As with local debugging, the Break Now function is disabled by default and enabled with async - see the docs for more information | + | If required you can also add a user identifier: |
| + | |
| + | export DBGP_IDEKEY=jdoe |
| + | |
| + | Note: As with local debugging, the Break Now function is disabled by default. Setting async=1 breaks at the first line - see the docs for more information |
| + | |
| + | ====Single machine setup==== |
| | | |
| On your desktop we need to set up the Listener for Komodo. | | On your desktop we need to set up the Listener for Komodo. |
Line 60: |
Line 64: |
| Edit/Preferences/Debugger/Connection | | Edit/Preferences/Debugger/Connection |
| Set a specific port to 9020 (match the port above) | | Set a specific port to 9020 (match the port above) |
| + | Set a user name as above |
| | | |
| Now we need to start a program on the server. The debug code will then call Komodo. | | Now we need to start a program on the server. The debug code will then call Komodo. |
Line 119: |
Line 124: |
| export PERL5LIB /usr/local/lib64/perl5:/usr/local/share/perl5:/usr/lib64/perl5/vendor_perl:/usr/share/perl5/vendor_perl | | export PERL5LIB /usr/local/lib64/perl5:/usr/local/share/perl5:/usr/lib64/perl5/vendor_perl:/usr/share/perl5/vendor_perl |
| export PERLDB_OPTS= | | export PERLDB_OPTS= |
| + | export DBGP_IDEKEY=jdoe |
| | | |
| ==== Perl CGI Debugging==== | | ==== Perl CGI Debugging==== |