Replacing Cloud9 IDE with VS Code Server (bb-code-server)

Project cloud9 is dead but, it’s old (open-source) version still comes preinstalled with every beaglebone hardware. It needs to be changed and to do that we have shifted towards VS Code Server based soulution called bb-code-server. If your beaglebone image runs cloud9 and you want to use VS Code instead then this is for you.

Let’s quicly remove cloud9 and install bb-code-server on you BeagleBone hardware,

  • Update and upgrade
    sudo apt update
    sudo apt upgrade
    
  • Remove Cloud9
    sudo apt remove c9-core-installer
    
  • Install VS Code server (bb-code-server)
    sudo apt install bb-code-server
    sudo reboot
    
  • Start VS Code Server on http://192.168.7.2:3000
    sudo systemctl enable bb-code-server
    sudo systemctl start bb-code-server
    
  • Optional auto-start on boot
    sudo systemctl add-wants multi-user.target bb-code-server
    

Keep tinkering :wink:

5 Likes

Thanks @lorforlinux. I did install, compilation and execution are working. But facing issue with configuring debug. Any help on c/c++ debug configuration would be helpful. Thanks once again.

VSCode has a massive number of plugins, we also haven’t put together a perfect initial setup:

https://open-vsx.org/

Today, we only pre-install:

  • donjayamanne.githistory
  • formulahendry.code-runner

Edit, wonder if this would be uesful…

https://open-vsx.org/extension/franneck94/c-cpp-runner

Regards,

1 Like

Thanks, @RobertCNelson . I have installed C/C++ Runner but couldn’t compile using this extension. Since, the default launch.json not working. If there is example launch.json. that will help.

Current launch.json as follows,

{
  "version": "1.0.0",
  "configurations": [
    {
      "name": "C/C++ Runner: Debug Session",
      "type": "cppdbg",
      "request": "launch",
      "args": [
        ""
      ],
      "stopAtEntry": false,
      "cwd": "/home/debian/example",
      "environment": [],
      "program": "/home/debian/example/build/Debug/outDebug",
      "internalConsoleOptions": "openOnSessionStart",
      "MIMode": "gdb",
      "miDebuggerPath": "gdb",
      "externalConsole": false,
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ]
    }
  ]
}