`gdb-oneapi` debug breakpoint doesn't work at all in VSCode
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- cmake, cpp, vscode
- 领域
- build-system, devtools
调研方向
首先,使用报告中所示的 CMakeLists.txt 配置,在 Ubuntu 25.10 上通过 gdb-oneapi 16.3 重现 VSCode 中断点的行为。比较在调试前和调试期间设置的断点,并验证它们仍位于预期的源代码行上。完成标准是确定原因,并记录或验证针对断点重定位和失败的修复方案。
由索引模型根据 Issue 内容生成。
描述
Summary
I can set breakpoints in VSCode. I can see the red dots. However, once I start debugging, the red dots move to other lines. Trying to set breakpoints during debugging is like catching the air! It just either doesn't stick at all or moves to other lines. I am using CMake and this is at the top of my CMakeLists.txt:
cmake_minimum_required(VERSION 3.30.3 FATAL_ERROR)
project(DataStructuresAlgorithms CXX)
set(CMAKE_CXX_STANDARD 26)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE "Debug")
# ###############################################################################
# Global compiler options
# https://stackoverflow.com/questions/79444534/vscode-cmake-configure-does-not-generate-cmakecache-txt-from-cmakelists-txt
# CMAKE_CXX_COMPILER_ID is set only at the project() call, when CMake actually detect compilers.
# ###############################################################################
if(MSVC)
# remove default flags provided with CMake for MSVC
set(CMAKE_CXX_FLAGS "")
set(CMAKE_CXX_FLAGS_DEBUG "")
set(CMAKE_CXX_FLAGS_RELEASE "")
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
message("-- Setting GNU options from CMakeLists.txt")
set(CMAKE_CXX_FLAGS "-std=gnu++26 -fdiagnostics-color=always" CACHE STRING "CXX build flags" FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -ggdb3 -Og -g3" CACHE STRING "Debug build flags" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG" CACHE STRING "Release build flags" FORCE)
endif()
Version
Report oneAPI Toolkit version and oneAPI Sample version or hash.
$ gdb-oneapi --version
GNU gdb (Intel(R) Distribution for GDB* 2025.3.0) 16.3
Copyright (C) 2025 Free Software Foundation, Inc.; (C) 2025 Intel Corp.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Environment
Ubuntu 25.10
- 主要语言
- C++
- 星标
- 1.2k
- 派生
- 745
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oneapi-src/oneAPI-samples 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 45/100
oneapi-src/oneAPI-samples#2764 ·
-
难度 4/5 3-5 天 新手友好度 35/100
oneapi-src/oneAPI-samples#2748 ·
-
难度 5/5 一周以上 新手友好度 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face 未关闭question
难度 4/5 3-5 天 新手友好度 15/100
oneapi-src/oneAPI-samples#2739 ·
-
question
难度 4/5 3-5 天 新手友好度 25/100
oneapi-src/oneAPI-samples#2568 ·
查看 oneapi-src/oneAPI-samples 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 92/100
autowarefoundation/autoware_universe#13413 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
automated-analysis bug memory-safety
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
gazebosim/gz-sensors#662 · 1 条评论 ·