[solved] "run / debug" overlay vs menu command

I have created a launch.json to supply a cmdline argument to a program.

If I click the "debug" overlay here, the program shows the usage help, meaning that the arguments were empty

If I click "Start debugging" in the "Run" menu, it works as expected.

I feel I am missing some pieces of the puzzle... what I am doing wrong?

I think that is expected behavior because the inline Run option is automatically generated by rust-analyzer for every binary (and test function) in your project, and it does not take any input from your launch configurations.

1 Like

now it makes sense, thanks.