Changes

From SME Server
Jump to navigationJump to search
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 199: 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 218: 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 236: Line 250:       −
Xdebug 3
+
=====Xdebug 3 =====
    
New syntax.
 
New syntax.
Line 248: 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 311: 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 332: 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

Navigation menu