It appears that as of the time of writing this, there is no official rust debugger. Luckily, there are two generic debuggers which seem to do the job alright: GDB, LLDB. Setting up both of them is basically the same process. So far, I had a nicer experience with LLDB so that will be the focus.
There are a few LLDB debuggers available for VSCode. The one I decided to use was CodeLLDB (vadimcn.vscode-lldb
), but once again all of them should work almost the same way.
Here is the .vscode/launch.json
:
{
"version": "0.2.0",
"configurations": [