-
Notifications
You must be signed in to change notification settings - Fork 449
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
Pass command line arguments for "Run Without Debugging" #924
Comments
You did not miss any steps. This functionality has not been implemented. I will mark as a feature request. |
Thank you for your reply! Should I close this issue now, or should I keep it open until this new feature is implemented? (Sorry, I'm not familiar with the process of open source software maintenance) |
Please leave it open. We will close it when the feature is implemented or if we don't think we can get to it in a reasonable time frame. |
Thanks! 👍 |
still not implemented today? |
Not yet. If you want to take a look at the code, we'd accept a PR. |
I am new using github. I need this feature too. would someone please accept this PR. It would great help |
Is this feature still in scope? |
This is a bummer! Running without a debugger is not that uncommon, isn't it? Any workaround for this? |
A good workaround is to use launch.json which can define program launch args and you can invoke the run without debugger via the command "Debug: Start without Debugging" in the pallette (as opposed to CMake: Run without debugging"). Regarding opened PRs, we are catching up on them this week. Thank you for your patience. |
CMake Tools 1.7.0 was released today and it contains a fix for this issue. Upgrade the extension in VSCode and let us know if you encounter any other problems. |
For anyone trying to figure out how to actually do this, you need to add the "cmake.debugConfig": {
"args": [
"-first",
"-second"
]
} |
@JodiTheTigger Thanks. But I have multiple targets. Different targets need different set of arguments to run. How can I specify that target specific arguments ? |
Sounds like a new bug/feature request to me. I've given up using cmake launch without debugger, and moved back to running manually via the command line. |
If you have multiple configurations that need different sets of arguments to run and you want to save those to a file so you don't have to type them out all the time, the solution is to use |
I'm so sorry to bother you with this little question ...
I know how to pass command line arguments to a debug target, but when I executed
CMake: run without debugging
, I found no argument was passed to the target. Did I miss any steps?I will be very grateful to you if this problem was solved. Thank you.
The text was updated successfully, but these errors were encountered: