Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Debug Rust binary built in nightly mode

I would like to debug my rust source code by clicking on "Debug" in the UI (see screenshot). I need to enable the nightly flag for my code to work. How can I update the default debug configuration to pass the nightly flag? To make things more complex, I’m connected to a remote box via SSH.

Screenshot

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can use the standard mechanisms to specify nightly using a toolchain override. If your code should always use nightly, your best bet is to either:

  • set a override via rustup override set nightly in your project’s directory
  • create a rust-toolchain.toml file with [toolchain] channel = "nightly"

That way all Cargo commands in your project will use it.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading