rust-lang / rust-lang/rust-analyzer

[Possible Bug]: Breakpoints not appearing with `Native Debugger` vscode extension. Cannot set as debug engine.

Open
#10,000 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode E-has-instructions
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

Background

I'm currently switching debuggers from rust-lldb to rust-gdb. There are no extensions for rust-gdb that I'm aware of, so piecing together several extensions and scripts I have managed to compile my crate, identify the output binary, and debug it using Native Debug, itself using rust-gdb as the backend.

However, I can no longer place breakpoints in my program. I've been searching around for the culprit, and the only lead I have so far is this extension's "Debug Engine" setting, which mysteriously seems restricted to two extensions, despite there being more gdb/lldb debug extensions out there. Is there any way I can bypass this without enabling VSCode's Breakpoints in every file setting?

(Note: My setup works flawlessly if I do enable that setting)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the breakpoint behavior with the Native Debug VSCode extension using rust-gdb, comparing the Debug Engine setting with VSCode's "Breakpoints in every file" setting. Done means breakpoints appear without enabling that global setting, but the issue does not name a repository file or test to guide further investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.