
If you already have more than one deployment configuration in CLion, you might want to right-click on the newly created configuration and select Set As Default. You would also need to go to the Mappings tab and add local to remote mappings of the project files, e.g.:ĭeployment path: /home/ubuntu/Repos/actix. Since we are using the standard AWS Ubuntu image, the default username is ubuntu. Click on + to add the new deployment configuration and fill it in: In CLion open Preferences→Build, Execution, Deployment→Deployment.

We will use CLion deployment for copying the following files: It can also be used for a large number of other special cases used mostly for the web servers which we are going to omit in this post.
Clion remote debugging update#
Open this project in CLion, but note that IDE might need time to update its indices and cache.ĬLion deployment feature allows us to keep in sync the files on the local and the remote machines. to /Users//Repos/actix, if you are on Mac OS. We will be using Actix repository as a debugging example, so you would need to download it from here: and clone it locally, e.g.
Clion remote debugging install#
You can download CLion from here, and upon its launch, you would also need to install the Rust plugin which can be found in Preferences→Plugins. If you do not have Rust, run the following command to install it: curl -sSf | sh -s -y - default-toolchain nightly Our team also likes using mosh because it tolerates interrupted connections and allows moving between WiFi hotspots, which needs UDP 60000–61000 ports.Īfter launching an AWS instance and connecting to it through ssh or mosh, run the following commands on it: apt-get update & apt-get install -y curl gdb g++-multilib lib32stdc++6 libssl-dev libncurses5-devĬurl -sSf | sh -s -y - default-toolchain nightly Local machine setup The following ports would need to be allowed: TCP 22 for ssh and TCP 2345 for gdbserver. We will be using an AWS instance running an Ubuntu image as a remote machine.
Clion remote debugging mac os#

Rust, being a relatively new language, is still on its path to gaining wide support by IDEs.
