Open v-frankwang opened 1 month ago
@v-frankwang The launch configuration that you have in the launch.json
isn't one that is going to work for debugging ctest. Could you change it to something more like the ones mentioned here: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/debug-launch.md. There are some directions on how to get started on creating a launch.json that would work for ctest.
Please let me know what findings you get and whether this helps you.
When I try to get a repro following your steps with the launch.json from the video, I get a popup that the launch program "enter program name, for example .... does not exist". I would've expected a popup like that for you, is it possible it happened in the background? Either way, fixing the launch.json should fix it. Let me know if there are any other questions or if this feedback helps.
@gcampbell-msft When I first afirst adddd the Launch.json file lldb(Launch), the situation described in the issue occurs, when I replace the code in the Launch.json file with the Ctest in the documentation you provided, it seems that the problem does not occur, but in the debug console there is a new problem. After I delete the added Launch.json file and add a new Launch.json file lldb(Launch) I get the popup box you mentioned “enter program name, for example .... does not exist”. This popup box should be that the field “program” of the added Launch.json file needs to be filled with “program name”, I think this should be normal.
Adding a Launch.json file for the first time:
Re-add after deletion:
Brief Issue Summary
Repro steps:
Actual results: After clicking Debug tests it will keep running and no results will appear, after clicking Cancel Test Run an error popup will appear in the bottom right corner.
https://github.com/microsoft/vscode-cmake-tools/assets/160998958/271226e9-49ac-457b-a891-54e6925f07cd
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response