kitamstudios / rust-analyzer.vs

Rust language support for Visual Studio 2022
https://marketplace.visualstudio.com/items?itemName=kitamstudios.RustAnalyzer
Other
147 stars 11 forks source link

how to pass program arguments for debug configuration. #43

Open mediabuff opened 8 months ago

mediabuff commented 8 months ago

Which settings file ? launch.json or settings.json ? which location ? Any sample configuration. None of the example projects have sample configuration settings.

mediabuff commented 8 months ago

Figured out the hard way. You set the properties under cargo.toml file. image

mediabuff commented 8 months ago

Question. This cargo has multiple binaries, how to set the cmd args for each program ?

parthopdas commented 7 months ago

yeah its not supported currently. However it can be easily implemented in the settings based config used by the extension. Happy to accept a PR, let me know if you need guidance on the implementation.