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

Debug a Googletest testcase from the Testing interface gives error

Open NoMore201 opened this issue 2 years ago • 1 comments

If I try to debug a single test case through the Testing panel by clicking the "Debug Test" icon, test starts but nothing happens. Output of the test result windows stays empty, an error message is shown and it will be stuck like this forever:

image

I tried to configure a debug launch configuration as explained here, but it doesn't work. If I understood that page correctly, it works only with the test executable currently selected as "launch target".

It happens on any CMake project using googletest I have on my machine. Running and debugging test executables separately works perfectly fine.

Information: OS: Windows 10 Visual Studio Code 1.77.3 CMake Tools extension 1.14.30

NoMore201 avatar Apr 26 '23 12:04 NoMore201

@NoMore201 Could you test this again in the most recent CMake Tools version? I believe it should be fixed.

gcampbell-msft avatar Jun 24 '24 15:06 gcampbell-msft

Based on last comments, this should be fixed. If not, @NoMore201 Could you please create a new issue with more context and a repro project? Thanks.

gcampbell-msft avatar Dec 17 '24 19:12 gcampbell-msft