在 Visual Code C++ 中使用 LLDB 调试 Google 单元测试时,为什么我的断点没有命中?

问题描述 投票:0回答:0

我正在使用 LLDB 在可视代码中调试我的 Google 单元测试二进制文件。我在调试控制台中添加了调试断点

但是测试执行时无需等待任何断点。我错过了什么?

这就是我的 launch.json 的样子:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [    
      {
        "name": "gtest",
        "type": "cppdbg",
        "request": "launch",
        "program": "/Users/rashmii/Documents/cpp_project/bazel-bin/src/leet_test",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": false,
        "MIMode": "lldb",
    }        
    ]
  }
c++ visual-studio-code googletest lldb
© www.soinside.com 2019 - 2024. All rights reserved.