Debugging issues in VS Code

I have VS Code on an Ubuntu machine configured to debug a Rust application with the rust-analyzer and CodeLLDB extension (recommended config per Microsoft). When running, the debugger will stop at a breakpoint as expected.

The problem is that once it hits the breakpoint, it appears to hang. The variables won't load, hovering the mouse over variable names in the editor doesn't show anything, and nothing happens if I click "Step Over" or "Continue". It's just locked up.

Of note is that this does not occur everywhere in the code. It only seems to occur on code that is within a subsystem that processes incoming network requests (responds to them).

Any advice would be appreciated.

1 Like

Hitting the same problem with no solution yet.

I also have the same problem which makes debugging on Windows impossible. Any solution?

Yup facing the same issue.

i tried adding this to launch.json, it helps

"setupCommands": [
    {
    "description": "Disable target async",
    "text": "set target-async off",
    "ignoreFailures": true
    }
]
2 Likes

hello @sorainnosia , can u plz share your launch.json file. thx.

I can confirm it seems to works better with @sorainnosia fix.
@srikarplus you have to put the "setupCommands" key at the root level of your launch.json