vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

[Bug] CMake Debug copy value bug

Open Pantau123 opened this issue 6 months ago • 3 comments

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 avatar Aug 18 '25 15:08 Pantau123

@Pantau123 Hi , thanks for reporting issue here! Reproduced this issue on CMake Tools v1.21.36 release version.

Repro Steps:

  1. Launch VS Code and create a new project.
  2. Add the following code to CMakeListes.txt, set an breakpoint. set(VAR1 "12345678")
    set(VAR2 "abcdefg")
    set(VAR1 "99999")
  3. Open the command palette (F1 or Ctrl+Shift+P) run command: "CMake: Configure with CMake Debugger".
  4. Open watch window, add VAR1,VAR2, verify "Copy Value" and observe the results.

Details please see following video:

Image

FYI: @gcampbell-msft

yanghhhhhhh avatar Aug 19 '25 06:08 yanghhhhhhh

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:

  1. Launch VS Code and create a new project.
  2. Add the following code to CMakeListes.txt, set an breakpoint. set(VAR1 "12345678") set(VAR2 "abcdefg") set(VAR1 "99999")
  3. Open the command palette (F1 or Ctrl+Shift+P) run command: "CMake: Configure with CMake Debugger".
  4. 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 avatar Aug 21 '25 11:08 Pantau123

@Pantau123 Thank you for your report. We were able to reproduce the issue and have marked it as a bug. Thank you.

yanghhhhhhh avatar Aug 22 '25 01:08 yanghhhhhhh