microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
184 stars 54 forks source link

”Unable to start debugging. The value of miDebuggerPath is invalid“ is displayed after starting to debug the Makefile-example project. #571

Closed Yingzi1234 closed 2 months ago

Yingzi1234 commented 3 months ago

More info:

  1. This bug is only reproduced on Windows platforms .
  2. Make sure that the Makefile tools extension is installed and that the necessary tools, Make and compiler are installed.

Repro Steps:

  1. Clone the makefile-example project.
  2. Run the Makefile: Configure command.
  3. Open the Makefile Tools Project Outline, set the build target to “all” and the launch target to “app”.
  4. From the Makefile Tools Project Outline, debug the selected target

Expected Result: Debug can succeed

Actual Result: Debugging was unsuccessful, and shows that "

Unable o start debugging. The value of miDebuggerPath is invalid image

Yingzi1234 commented 3 months ago

The issue currently has the following workaround:

  1. Download the gdb.exe on your machine.
  2. Add the path to gdb.exe to the environment variable.
  3. Add the following command to Settings.json file: "MIMode": "gdb", "miDebuggerPath": "Download path of gdb.exe"
  4. Check for successful debugging image
Yingzi1234 commented 2 months ago

@gcampbell-msft This issue no longer reproduces in the latest version.

Makefile Toos: v0.10.5(pre-release) C/C++: v1.20.1 VSCode: v1.88.1 image