microsoft / microsoft/vscode-cpptools
[Linux] C++ gdb debugging - breakpoints don't work
@WardenGnaw is already working on this.
Since May 18, 2020.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Hello everyone,
I can't get the gdb debugger to run in my c++ makefile project. vscode does not stop at breakpoints. The program just runs through. If I build a single cpp file without makefile everything works. A plain C project with makefile also works. I also tried to copy all *.o. *.cpp and *.h files into the bin directory. Unfortunately this doesn't help either. Can you please help me.
Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-23T19:32:05.786Z
Electron: 7.1.14
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.39-1-MANJARO
C/C++ Extension Version: 0.28.0 / Downgrading to 0.27.1 or 0.27.0 does not solve the problem.
Other extensions: C/C++ Project Generator / C/C++ Snippets Pro / PlatformIO IDE / Python / systemd-unit-file / Disabling them does not solve the problem.
The sample project is located here
https://github.com/axel-dd/cpptest
debug logs are here
https://github.com/axel-dd/cpptest/blob/master/debug.txt
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.
Assessment
This issue has not been assessed yet.