Skip to content

Documentation issues #1276

Description

@hackf5

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

  • Operating System: Windows 10
  • VSCode Version: 1.45.1
  • CMake Tools Extension Version: 1.4
  • Compiler/Toolchain: GCC

Fixes

Modify launch.json:

"environment": [
                {
                    "name": "PATH",
                    "value": "${env:PATH};${command:cmake.launchTargetDirectory}"
                }
            ],
"miDebuggerPath": "Path to gdb"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: debug/launchdocumentationrelated to documentation of the extensionstale-exemptto use with close-stale-issues and close-old-issues bot

    Type

    No type

    Projects

    • Status
      Pending Prioritization

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions