microsoft / microsoft/vscode-cpptools
Stepping throws errors trying to open `poll.c`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Bug type: Debugger
Describe the bug
- OS and Version: Debian 10 Buster (chromebook)
- VS Code Version: 1.59.0
- C/C++ Extension Version: v1.5.1
To Reproduce
Please include a code sample and launch.json configuration.
Steps to reproduce the behavior:
Launch debugger on Debian 10 Buster (GNU gdb 8.2.1) and start stepping through files. A popup with this error will happen on every step:
Unable to open 'poll.c': Unable to read file '/build/glibc-vjB4T1/glibc-2.28/sysdeps/unix/sysv/linux/poll.c' (Error: Unable to resolve non-existing file '/build/glibc-vjB4T1/glibc-2.28/sysdeps/unix/sysv/linux/poll.c').
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with Debian 10, VS Code 1.59.0, the C/C++ extension v1.5.1, GNU gdb 8.2.1, and the reported launch.json configuration while stepping through files. Trace how the debugger handles the reported /build/glibc-vjB4T1/glibc-2.28/sysdeps/unix/sysv/linux/poll.c path; done means stepping no longer produces the popup and the source file resolves or opens correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100