Debug Button Doesn't Work

See original GitHub issue

Brief Issue Summary

The debug button doesn’t work in vscode-remote inside containers.

Expected:

Show a list of tragets to select for debug.

Apparent Behavior:

Show error message below: Failed to prepare executable target with name 'undefined'

Platform and Versions

  • Operating System:
  • CMake Version: 3.18.1
  • VSCode Version: 1.48.0
  • CMake Tools Extension Version: 1.4.1
  • Compiler/Toolchain: gcc7.5

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
paleomooncommented, Nov 19, 2021

This happened when I made a mistake in CMakeList.txt: set(CMAKE_BUILD_TYPE DEBUG). Change to set(CMAKE_BUILD_TYPE Debug) fixed the issue 😂.

1reaction
maximilianmordigcommented, Aug 22, 2022

I made it work by making sure that it is Debug rather than DEBUG, (setting "cmake.loggingLevel": "debug" in .vscode/settings.json to get verbose logs), deleting <cmake_build_folder>/.cache, then reload vscode window, then run set debug target which asks me for the target, as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run/debug button is enabled but does not work
Try re-creating configuration from scratch, try re-creating project configuration files by re-importing it from existing sources (File | New | ...
Read more >
Running test by clicking "Run | Debug" button doesn't work
Running the app however, behave perfectly normal. ... Steps to reproduce the behavior: Go to test/; Click on any Run / Debug on...
Read more >
Debug button not working! (Visual basic express 2010)
The debug button in visual basic doesn't run the program that I developed. I tried: Changed to expert mode --> changed to exceptions...
Read more >
Debugging in Visual Studio Code
VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program. Tip: The Run action...
Read more >
Can not press run-button after debugging - TI E2E
You need the proper Debug context selected in the Debug view. Please click on the last node in the Debug view ("Texas Instruments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found