kitamstudios/rust-analyzer.vs

Can't build/debug program

Closed this issue · 3 comments

Hello there!
I have trouble debugging my small example program.
My steps:

  1. Open VS22
  2. File > Open > Folder and select my Example
  3. Right click on main.rs > Set as start element
  4. F5 to debug

My result:
image

My Build log.txt

The code I'm trying to build:
image

My versions (if needed):
VS Community 2022 version: 17.11.0
Rust-analyzer version: 2.0.187
cargo 1.80.0 (376290515 2024-07-16)
rustc 1.80.0 (051478957 2024-07-21)

Thank you in advance!

i'll need to fix this bug.

can you try setting the cargo.toml as startup and then F5ing?

Yeah, give me a moment.

Interesting, now it works even though I tried it before.
Ok, thank you very much!