microsoft / Windows-Dev-Performance

A repo for developers on Windows to file issues that impede their productivity, efficiency, and efficacy
MIT License
434 stars 20 forks source link

Set up your dev environment on Windows for Rust #107

Closed FrancisKing3 closed 8 months ago

FrancisKing3 commented 2 years ago

This is an excellent document, but doesn't really explain about launch.json.

You have to create this by changing the opened folder to be your project. Starting debugging creates a launch.json file, as does Run - Add Configuration. Both use the Cargo.toml file to build the launch.json file. The document does it differently, but equivalently, requiring you to cd to the project, and then run Visual Studio Code.

Then the code tab has Run | Debug buttons and all is well.

Trying to run or debug from the folder one higher in the hierarchy causes all kinds of problems, launch.json is malformed (for want of a better word) - neither Run | Debug works, or indeed sometimes appears. It took me a while to figure out what I was doing wrong.

I'd like to see more information around this crucial point.

Eli-Black-Work commented 1 year ago

@FrancisKing3 Can you post a link to the document that you're referring to?

AdamBraden commented 8 months ago

Assuming this is issue is in reference to these docs - https://learn.microsoft.com/en-us/windows/dev-environment/rust/setup

The best resolution is to open an issue directly in the docs page. At the bottom there is options to submit feedback: image