Summary of Remote Development Options in CLion


CLion has several remote development options, each tailored to specific setups:
  • Remote development using JetBrains Gateway

  • Remote development with local sources

  • WSL2

  • Docker (running locally)

  • Two variants of gdbserver/lldb-server debugging: remote debugging (GDB/LLDB) and remote GDB server (GDB only).

The following is a summary of the remote development options, which can be decided based on various factors such as the combination of your local and remote operating systems, the project model you are using, whether you need to build on the target, etc.

👇Click to Claim👇
👉C Language Knowledge Resource Collection

Remote Options: System and IDE Configuration

Gateway vs. Remote with Local Sources

Feature Remote with Gateway Remote with Local Sources
IDE Run Location Remote Run Local Run
Local Operating System macOS / Linux / Windows macOS / Linux / Windows
Remote Operating System Linux, including WSL2 Linux
Connection Protocol SSH / Space Integration / Gitpod SSH
Required Tools CLion on local machine or standalone Gateway, CLion on remote machine (can be installed via Gateway) For macOS / Linux clients, rsync; for Windows clients, rsync or tar
Source Code Location Remote Run Local Run
Synchronization No Need Automatically synchronize all source code; manually resynchronize header file search paths
Build Remote Run Remote Run
Run/Debug Remote Run Remote Run

WSL2 and Docker

Feature WSL2 Docker
Local Operating System Windows macOS / Linux / Windows
Remote Operating System Specific Linux Distribution Containerized OS Distribution
Connection Protocol Docker for OS
Source Code Location Local Run Mounted Folder
Synchronization No Need Automatically Synchronize
Build Build in WSL Build Inside Container
Run/Debug Run in WSL Run Inside Container

Remote Debugging

Feature Remote Debugging Remote GDB Server
Local Operating System GDB: macOS / Linux / Windows; LLDB: macOS / Linux macOS / Linux / Windows
Remote Operating System Any OS that supports GDB server, LLDB: macOS / Linux or other OS that supports lldb-server Any OS that supports GDB server and SSH
Connection Protocol TCP / UDP or Serial Line TCP / UDP or Serial Line; SSH required for upload
Required Tools gdbserver or lldb-server on target gdbserver on target
Source Code Location Local; symbol files also placed locally Local
Synchronization Manual Binary files automatically synchronize
Build Not Specified Local (requires cross-compilation)
Run/Debug Program runs remotely under gdbserver/lldb-server; CLion’s GDB/LLDB connects to the running process and debugs locally Program runs remotely under gdbserver; CLion’s GDB connects to the running process and debugs locally

Remote Options: Project-Level Settings

Gateway vs. Remote with Local Sources

Feature Remote with Gateway Remote with Local Sources
Project Format CMake / Build Database / Makefile CMake / Makefile
Toolchain System Toolchain Remote Toolchain
Path Mapping No Need Automatically created in deployment entry, customizable

WSL2 and Docker

Feature WSL2 Docker
Project Format CMake / Build Database / Makefile CMake / Makefile
Toolchain WSL Docker
Path Mapping No Need Configurable in container settings

Remote Debugging

Feature Remote Debugging Remote GDB Server
Project Format Any CMake
Toolchain Not Specified Default toolchain for macOS / Linux; MinGW, Cygwin on Windows, also available for WSL; plus remote and Docker toolchains


 Recommended Hot
  • Gold 3 Silver 4? Netizens: It has long been nonexistent~

  • What is the most silent flaunting of wealth for men over 30? Netizens: Wife is 18 years old~

  • This year’s employment environment is too poor…

Leave a Comment