microsoft / microsoft/vscode-cpptools

[Linux] C++ gdb debugging - breakpoints don't work

Open
#5,517 8 comments 0 reactions 1 assignee View on GitHub

@WardenGnaw is already working on this.

Since May 18, 2020.

debugger
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.