microsoft / microsoft/vscode-cmake-tools

Issue with debugging test

Open
#3,505 31 comments 0 reactions 1 assignee Claimed by @jophippe View on GitHub
enhancement Feature: Test Explorer repro needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

Using the test explorer and selecting debugging a test does not work correctly. Regardless of the test you select, the test indicated in the cmake extension options is always executed.

![image](https://github.com/microsoft/vscode-cmake-tools/assets/123369385/cea83ba0-00b1-472f-8c6d-a14a4e6155b0)

![image](https://github.com/microsoft/vscode-cmake-tools/assets/123369385/172a1e99-1a9b-4ef6-b1f5-aff407d53cea)

launch.json

```json
{
"name": "(gdb) Acds Unit WSL2",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"cwd": "${workspaceFolder}",
"stopAtEntry": true,
"externalConsole": false,
"logging": {
// "engineLogging": "verbose",
"trace": true,
"traceResponse": true
},
"environment": [
{"name": "LD_LIBRARY_PATH", "value": "${input:sdkPath}/sysroots/x86-rcs-linux-runtime/usr/lib:/${input:sdkPath}/sysroots/x86-rcs-linux-runtime/lib"}
],
"MIMode": "gdb",
"setupCommands": [
{
"text": "-gdb-set auto-load safe-path /opt/",
"description": "enable safe path",
"ignoreFailures": false
},

],
},
```

### CMake Tools Diagnostics

_No response_

### Debug Log

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.