microsoft / microsoft/vscode-cpptools

Breakpoint in included header gives weird behaviour

Open
#473 2 comments 0 reactions 1 assignee View on GitHub

@pieandcakes is already working on this.

Since Feb 3, 2017.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Mac OS Sierra

I set a breakpoint in a header I'm including in "main.cpp" called "Terrain.h". I run the program and hit that breakpoint. If I click on the breakpoint in the editor to remove it, an additional breakpoint appears in the Breakpoints list that's apparently in the file "Terrain.h ." ( a space and period/full stop after the actual name)

Clicking the two breakpoints in the Breakpoints brings me between two "instances" of the same file.

breakpoint_test.zip

I've included a simple test case. Put a breakpoint in init() to reproduce.

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.