Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Build and Run on Remote Machine

On the Remote Machine

...

Install RUSTRust

Code Block
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh


Locally 

In IntelliJ, create a Cargo Run configuration. 

For Run on, select an SSH host where you want to run the RUST application.

Image AddedImage Added

Remote Debugging 

Build your Binary

Build your application with the debug profile. This is done by omitting the --release argument.

Code Block
cargo build


On the Remote Machine

Install GDBServer


Code Block
sudo apt-get install gdbserver


Start the application

Code Block
gdbserver :1234 /path/to/your/rust_executable



Connecting to GDBServer from IntelliJ


???