Skip to content

Supply arguments to debug/launch button from statusbar #2407

Closed Answered by bobbrow
s133314 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the cmake.debugConfig setting to add options to the debug and run buttons. For example:

    "cmake.debugConfig": {
        "args": ["-c", "1"]
    }

Now from the status bar you see Release is specified, if I now press the debug button will it automatically reconfigure and recompile with Debug before starting the debug?

Yes, it should. If it does not, then we would consider that to be a bug in the extension.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@zethon
Comment options

@zethon
Comment options

@gcampbell-msft
Comment options

@zethon
Comment options

@gcampbell-msft
Comment options

Answer selected by s133314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants