1

So I am trying to get learn me some rust as part of this year's advent of code challange.

I have this setup: https://github.com/pschoffer/AdventOfCode/tree/master/2021

So each day is one subsubfolder. When I am inside some directory say: cd 2021/02. Running cargo run works just fine.

However, I would like to get the debugger to work too. When searching online I saw an extension LLDB is used for that.

I tried a few variations on the config, but I always get this or a similar error. enter image description here

My lunch config can be found here

Would love to get any input on the setup as clearly I have no idea what I am doing:)

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Pavel Schoffer
  • 492
  • 1
  • 3
  • 11
  • Do you compile it before running? Can use a build task for that. – Chayim Friedman Dec 02 '21 at 09:12
  • And does the launched executable points to the correct one? – Chayim Friedman Dec 02 '21 at 09:13
  • Thanks for the input @ChayimFriedman. Would `cargo build` be the way to build? I am not sure what is the executable here. It seems to generate this `target` folder. Nothing in there strikes me like an executable though: ` $ tree -L 2 . ├── Cargo.lock ├── Cargo.toml ├── input.txt ├── src │ └── main.rs ├── target │ ├── CACHEDIR.TAG │ ├── debug │ └── rls └── test1.txt 4 directories, 6 files ` – Pavel Schoffer Dec 03 '21 at 10:08
  • Sorry about the formatting I seem to be non-able to figure out how to paste code block in the comment here. – Pavel Schoffer Dec 03 '21 at 10:13

0 Answers0