Open GitSparTV opened 1 month ago
Hello @GitSparTV , we were unable to reproduce this issue in the latest CMake tools version 1.94.1, you can get the detailed steps to reproduce it below, please let us know if you have any issues. Thank you!
ENV:
Repro steps:
CMake: debug
" commandstd::cout << "Hello, Debugging!" << std::endl;
Actual result: Debug Successful
What I see on your gif, that you modified the string then hit restart and CMake didn't trigger the rebuild. You just restarted the previously compiled program. You can verify by looking at the terminal tab, it's for sure printing hello world
Hi @GitSparTV , thank you very much for your reply! We were able to reproduce the issue where the output window would not respond when the string was modified and restarted. We have changed this issue to “bug”. Hi @gcampbell-msft We were able to reproduce this issue where the output window do not output logs when the string is modified, you can get the repro steps below. And we have been changed the label to "bug". Please let us know if you have any concerns! Thank you!
The output is empty because the breakpoint is on the cout line. Let me record the demo
@GitSparTV Thank you very much for your reply!
https://github.com/user-attachments/assets/e1230efc-3575-4951-b4ef-2c2cbd3e5f8a
Restart
on debugger barWarning: Source file 'main.cpp' is newer than module file 'project_name'.
.Try to compile a file in Visual Studio. If you make changes, it will rebuild the project first and only then run the debugger. Otherwise you are debugging with old debug information.
@GitSparTV Thank you for your reply! We can reproduce your issue on latest CMake Tools version, you can get the details below. Thank you! @gcampbell-msft The problem for users is that the code output does not change when they click on re-debug after making changes. You can get the detail repro steps below and we have been changed the label to "Bug". Thank you!
ENV: VSCode: 1.94.2 CMake tools: v1.20.15(pre-release) C/C++: v1.22.8(pre-release)
Repro steps:
version 1
to version2
Actual result: The debug console box still shows the previous output “Version 1”
Brief Issue Summary
CMake extension allows to start debugging right from the box, however, if you modify source files while debugging and then hit Restart on debugging controls it won't rebuild the project.
Is it possible to control the behavior of this button to check for modifications?
Demo: https://github.com/microsoft/vscode-cmake-tools/issues/4114#issuecomment-2407098500