Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with tasks.json and launch.json #1394

Closed
rasmus98 opened this issue Aug 2, 2020 · 3 comments
Closed

Integration with tasks.json and launch.json #1394

rasmus98 opened this issue Aug 2, 2020 · 3 comments
Labels
duplicate a duplicate of an already present issue enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build Feature: debug/launch stale-old to use with the close-old-issues bot
Milestone

Comments

@rasmus98
Copy link

rasmus98 commented Aug 2, 2020

Brief Issue Summary

When setting up a cmake project, everything works fine, and I can build and enter the debugger by running cmake: debug. But this is completely disconnected from the usual debugging system (ctrl+b running tasks.json, F5 running launch.json). This extension generates the settings.json (which can thus be edited), but what happends when i press "cmake: build" and "cmake: debug" is completely opaque.

I need to develop with OpenMPI, and thus when running release mode, launch the program with mpicc, and thus i really need to be able to edit the launch task. And it just seems very strange to not be able to use the default shortcuts and lauch buttons.

Expected:

The extension should integrate into the existing build and run processes of vs code, ie cmake should make tasks.json and launch.json files, and cmake:build and cmake:debug should be aliases to those. Or the other way around. The same way that the extension is able to make a settings.json file which sets up propper include paths

It is very possible that this is somehow possible to set up, but it seems strange that a vs code build generator does not generate build and debug files that vs code can understand by default.

@bobbrow
Copy link
Member

bobbrow commented Aug 3, 2020

We are working on making this better (see PR #1268).

There is a way to amend the contents of the launch object that we generate. You can use the cmake.debugConfig setting. This has a few limitations and is something we have an issue open for (#1101).

@bobbrow bobbrow added duplicate a duplicate of an already present issue enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build Feature: debug/launch labels Aug 3, 2020
@bobbrow bobbrow added this to the Backlog milestone Aug 3, 2020
@github-actions
Copy link

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.

@github-actions github-actions bot added the stale-old to use with the close-old-issues bot label Oct 19, 2023
Copy link

This issue is now closed due to there being no activity on it for the past 14 days since being marked as 'stale-old'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of an already present issue enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build Feature: debug/launch stale-old to use with the close-old-issues bot
Projects
None yet
Development

No branches or pull requests

2 participants