microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.46k stars 450 forks source link

Documentation issues #1276

Open hackf5 opened 4 years ago

hackf5 commented 4 years ago

Summary

The launch.json fails to work for two reasons:

  1. It expects 'miDebuggerPath' to be supplied even if gdb.exe is on the path.
  2. The PATH environment variable is set incorrectly and this ends up blatting the variable entirely causing the debugger fails to launch.

Also in the quickstart guide you might want to suggest new users use MYSYS2 instead of Mingw-w64 as C++17 is completely broken in Mingw-w64 (https://sourceforge.net/p/mingw-w64/bugs/737/) and rarely updated, whereas MYSYS2 is actively maintained.

Platform and Versions

Fixes

Modify launch.json:

"environment": [
                {
                    "name": "PATH",
                    "value": "${env:PATH};${command:cmake.launchTargetDirectory}"
                }
            ],
"miDebuggerPath": "Path to gdb"
github-actions[bot] commented 11 months ago

This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label.