[Bug] CMake Debug copy value bug
Brief Issue Summary
When i debug a CMake script and i add a CMake Variable to the Watch then i see the correct value in the debug window. But when i click on the right Mouse Button and select "Copy Value" then the value is not copied but only the variable name
CMake Tools Diagnostics
its not a cmake problem it's a vscode plugin problem
Debug Log
its not a cmake problem it's a vscode plugin problem
Additional Information
No response
@Pantau123 Hi , thanks for reporting issue here! Reproduced this issue on CMake Tools v1.21.36 release version.
Repro Steps:
- Launch VS Code and create a new project.
- Add the following code to CMakeListes.txt, set an breakpoint.
set(VAR1 "12345678")
set(VAR2 "abcdefg")
set(VAR1 "99999") - Open the command palette (F1 or Ctrl+Shift+P) run command: "CMake: Configure with CMake Debugger".
- Open watch window, add VAR1,VAR2, verify "Copy Value" and observe the results.
Details please see following video:
FYI: @gcampbell-msft
I don't have one of these value in my clipboard
Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg
From: yanghhhhhhh @.> Sent: Tuesday, August 19, 2025 8:42:50 AM To: microsoft/vscode-cmake-tools @.> Cc: Brian Dahl @.>; Mention @.> Subject: Re: [microsoft/vscode-cmake-tools] [Bug] CMake Debug copy value bug (Issue #4551)
[https://avatars.githubusercontent.com/u/69227520?s=20&v=4]yanghhhhhhh left a comment (microsoft/vscode-cmake-tools#4551)https://github.com/microsoft/vscode-cmake-tools/issues/4551#issuecomment-3199437026
@Pantau123https://github.com/Pantau123 Hi , thanks for reporting issue here! Reproduced this issue on CMake Tools v1.21.36 release version.
Repro Steps:
- Launch VS Code and create a new project.
- Add the following code to CMakeListes.txt, set an breakpoint. set(VAR1 "12345678") set(VAR2 "abcdefg") set(VAR1 "99999")
- Open the command palette (F1 or Ctrl+Shift+P) run command: "CMake: Configure with CMake Debugger".
- Open watch window, add VAR1,VAR2, verify "Copy Value" and observe the results.
Details please see following video:
reprovideo.gif (view on web)https://github.com/user-attachments/assets/8000ff1d-8c19-44ae-8328-2254203918c5
FYI: @gcampbell-msfthttps://github.com/gcampbell-msft
— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-cmake-tools/issues/4551#issuecomment-3199437026, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEA5YHUVR42JZ4ED5B2CSLT3OLBOVAVCNFSM6AAAAACEFNHHUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJZGQZTOMBSGY. You are receiving this because you were mentioned.Message ID: @.***>
Mit freundlichen Grüssen Brian Dahl eMail: @.***
Informdata Dahl Brian Dahl Bandwiesstrasse 3
8630 Rüti ZH, Schweiz
@Pantau123 Thank you for your report. We were able to reproduce the issue and have marked it as a bug. Thank you.