top | item 34848704

(no title)

tatoalo | 3 years ago

The authors praised Rust debugging capabilities (also) in VScode, can somebody point to some references on this? From what I’ve seen around and what I’m able to debug in my VScode environment I might be missing something…

discuss

order

Arnavion|3 years ago

For Linux, I haven't used VSCode for debugging myself, just `gdb --tui`. Since VSCode supports driving gdb I would think everything would work fine.

For Windows, I used to debug Rust using Visual Studio (not Code) without problems, because Windows binaries built for the windows-msvc target generate regular .pdb files that VS can work with regardless of the source language.

Both VS and gdb have a problem where the representation of Rust values when printed / watched is funky, especially with enums, because the Rust type gets translated into C terms. But it's not unworkable.

metadaemon|3 years ago

Are you saying you're unable to debug Rust in VSCode, or that it's lackluster to you?

tatoalo|3 years ago

Lackluster from the (albeit) little time I’ve experienced it. For what’s worth, I’m on macOS and using LLDB