Build your Binary

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

cargo build


On the Remote Machine

Install GDBServer


sudo apt-get install gdbserver


Start the application

gdbserver :1234 /path/to/your/rust_executable



Connecting to GDBServer from IntelliJ