C++ debug keeps focusing on breakpoint in code editor. Can't do anything in other windows!
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Start by reproducing the breakpoint behavior with the launch.json and tasks.json configurations in the reported Ubuntu, VS Code, and C/C++ extension versions. Review the debugger logs showing repeated breakpoint output, and consider the issue complete when stopping at a breakpoint no longer prevents interaction with other windows, the watch view, or the VS Code menu.
Written by the indexing model from the issue text.
Description
Environment
- OS and version: Ubuntu 25.10
- VS Code: 1.117.0
- C/C++ extension: 1.5.1
- OS and version of remote machine (if applicable):
- GDB / LLDB version: 16.3
Bug Summary and Steps to Reproduce
Bug Summary: When the debugger stops at a breakpoint, the entire VSCode just focuses on the code editor. Can't do anything in other windows, watch window for instance. Can't even interact with the VSCode menu at all!
Steps to reproduce:
- In this environment...
- With this config...
- Do '...'
- See error...
Debugger Configurations
`launch.json`:
{
"name": "C++ Launch (Console)",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "CMake: build all",
"postDebugTask": "",
"program": "${workspaceFolder}/Debug/Console",
"cwd": "${workspaceFolder}/build",
"stopAtEntry": false,
"externalConsole": false,
"launchCompleteCommand": "exec-run",
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb"
},
"osx": {
"MIMode": "lldb"
},
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGw\\bin\\gdb.exe"
},
"args": [],
"setupCommands": [
{
"description": "Disable MI-async",
"text": "set mi-async off",
"ignoreFailures": true
},
{
"description": "Enable auto-load for all paths. Considered a security risk. See link for details: https://sourceware.org/gdb/current/onlinedocs/gdb.html/Auto_002dloading-safe-path.html",
"text": "set auto-load safe-path /",
"ignoreFailures": true
},
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
{
"description": "Do not display function arguments when printing a stack frame",
"text": "set print frame-arguments none",
"ignoreFailures": true
}
]
},
`tasks.json`:
{
"version": "2.0.0",
"tasks": [
{
"type": "cmake",
"label": "CMake: build all",
"command": "build",
"targets": [
"all"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"detail": "CMake build all"
},
{
"type": "cmake",
"label": "CMake: build Console",
"command": "build",
"targets": [
"Console"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": ["$gcc"],
"detail": "CMake build Console"
},
{
"type": "cmake",
"label": "CMake: build Core",
"command": "build",
"targets": [
"DataStructuresAlgorithms.Core"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": ["$gcc"],
"detail": "CMake build Core"
},
{
"type": "cmake",
"label": "CMake: build Tests",
"command": "build",
"targets": [
"DataStructuresAlgorithms.Tests"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": ["$gcc"],
"detail": "CMake build Tests"
},
]
}
Debugger Logs
Keeps printing the breakpoint line, for example:
Breakpoint 7.3, Tree<long>::Count (this=0x7bfff490e420) at /usr/src/DataStructuresAlgorithms/src/Tree.cpp:640
640 }
Other Extensions
No response
Additional Information
No response
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 58
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.
More from microsoft/vscode-cpptools
-
bug Language Service regression
microsoft/vscode-cpptools#14795 · 1 comment · 1 assignee ·
-
bug Language Service parser
microsoft/vscode-cpptools#14794 · 1 comment · 1 assignee ·
-
more info needed
microsoft/vscode-cpptools#14793 · 2 comments · 1 assignee ·
-
more info needed
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/vscode-cpptools#14787 · 1 comment · 1 assignee ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Openbug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 comment · 1 assignee ·
All issues in microsoft/vscode-cpptools
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100