Line 72: |
Line 72: |
| 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.
| + | You can now get the app for free here but need a free account to use it: |
| + | |
| + | https://www.activestate.com/products/komodo-ide/download-ide/ |
| | | |
| 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. |
| | | |
− | http://docs.komodoide.com/Manual/debugperl
| + | https://docs.activestate.com/komodo/12/manual/debugger.html |
| | | |
− | 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==== | | ====Server setup==== |
Line 139: |
Line 141: |
| In Komodo preferences you need to setup a Server/Remote Account for the remote server. e.g. | | In Komodo preferences you need to setup a Server/Remote Account for the remote server. e.g. |
| | | |
− | Remote Account : Test_v9 | + | Remote Account : Test_v10 |
| Type: SCP | | Type: SCP |
| Port: 2222 | | Port: 2222 |
Line 159: |
Line 161: |
| ====Local file mapping==== | | ====Local file mapping==== |
| | | |
− | Although I have not tried this I believe that you can potentially map from the server to your local files. You can then edit locally, upload and re test.
| + | I seemed to have managed this using sshfs: |
| + | |
| + | shfs -p 2222 root@192.168.10.199:/ ~/Mounts/somedirectory |
| + | |
| + | You can then access the files normally and it is easy to map the remote to the 'local' files. |
| | | |
| ====Tidying up afterwards==== | | ====Tidying up afterwards==== |
Line 195: |
Line 201: |
| Notes are here: | | Notes are here: |
| http://docs.komodoide.com/Manual/debugger#debugging-programs-komodo-ide-only_remote-debugging_debugger-proxy | | http://docs.komodoide.com/Manual/debugger#debugging-programs-komodo-ide-only_remote-debugging_debugger-proxy |
| + | |
| + | ===Perl with Visual Studio=== |
| + | |
| + | Still working on this but we need Perl Language Server |
| + | |
| + | yum --enablerepo=* install gcc gcc-c++ perl-App-cpanminus perl-AnyEvent-AIO perl-Coro |
| + | |
| + | cpanm Class::Refresh |
| + | cpanm ExtUtils::CBuilder |
| + | cpanm Compiler::Lexer |
| + | cpanm Hash::SafeKeys |
| + | cpanm Perl::LanguageServer |
| | | |
| ====PHP remote debugging==== | | ====PHP remote debugging==== |
Line 214: |
Line 232: |
| Next you need a small template fragment to enable remote debugging. | | Next you need a small template fragment to enable remote debugging. |
| | | |
− | Xdebug 2 | + | =====Xdebug 2===== |
| | | |
| mkdir -p /etc/e-smith/templates-custom/etc/php.ini | | mkdir -p /etc/e-smith/templates-custom/etc/php.ini |
Line 232: |
Line 250: |
| | | |
| | | |
− | Xdebug 3 | + | =====Xdebug 3 ===== |
| | | |
| New syntax. | | New syntax. |
Line 244: |
Line 262: |
| xdebug.start_with_request = yes | | xdebug.start_with_request = yes |
| xdebug.discover_client_host = true | | xdebug.discover_client_host = true |
− | xdebug.remote_cookie_expire_time = 3600
| |
| xdebug.client_host = localhost | | xdebug.client_host = localhost |
− | xdebug.client_port = 9001 | + | xdebug.client_port = 9003 |
| xdebug.idekey = users | | xdebug.idekey = users |
| xdebug.mode = debug | | xdebug.mode = debug |
Line 307: |
Line 324: |
| https://your.server.ip/index.php?somevalue=3&XDEBUG_SESSION_START=mydesktopkey | | https://your.server.ip/index.php?somevalue=3&XDEBUG_SESSION_START=mydesktopkey |
| | | |
− | ====Visual Studio/VS Codium==== | + | ====Visual Studio/VS Codium ==== |
| | | |
| Sample launch.json | | Sample launch.json |
Line 328: |
Line 345: |
| "enable" : true, | | "enable" : true, |
| "host" : "my.server.ip", | | "host" : "my.server.ip", |
− | "key" : "mycodiumkey", | + | "key" : "users", // As set in the server above |
| "port": 9003, | | "port": 9003, |
| "allowMultipleSessions" : true | | "allowMultipleSessions" : true |