Changes

Jump to navigation Jump to search
no edit summary
Line 203: Line 203:     
===Perl with Visual Studio===
 
===Perl with Visual Studio===
 +
 +
{{Note box|To be refined}}
    
Still working on this but we need Perl Language Server
 
Still working on this but we need Perl Language Server
 +
 +
On your server:
    
   yum --enablerepo=* install gcc gcc-c++ perl-App-cpanminus perl-AnyEvent-AIO perl-Coro
 
   yum --enablerepo=* install gcc gcc-c++ perl-App-cpanminus perl-AnyEvent-AIO perl-Coro
Line 214: Line 218:  
   cpanm Perl::LanguageServer
 
   cpanm Perl::LanguageServer
   −
====PHP remote debugging====
+
On your workstation:
 +
 
 +
* Set up your remote servers using ssh keys in .ssh/config
 +
* Install Visual Studio Code Remote Explorer
 +
* Restart
 +
* Go to Remote Explorer and you should see your server list
 +
* Open in Current or New window
 +
* Select the platform and let VS Code install itself
 +
* Go to File explorer
 +
* Open Folder
 +
* It will suggests opening in /root/ but I find it easier to open in /
 +
* Click OK and your folders will appear left
 +
* Go to your file and open it
 +
* Set a break point near the top
 +
* Now go to Debug, Add a Configuration, and accept the defaults
 +
* Now run the Debug and you should see the code stop at one of your break points
 +
 
 +
 
 +
You can now step through your code.
 +
 
 +
===PHP remote debugging===
    
You can debug on your local workstation but it is extremely useful to be able to debug direct on the server environment.
 
You can debug on your local workstation but it is extremely useful to be able to debug direct on the server environment.

Navigation menu