franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

[bug] Running program with non-default names for argument count and values won't work #154

Closed Gotoro closed 5 months ago

Gotoro commented 5 months ago

You specify that you can add command-line arguments into launch parameters, that's true

image

This won't work however when those c variables are named somewhat different compared to the usual argc and argv. I'm trying to run this C program from one of the code golf submissions which draws a google logo on the screen. As per the nature of code golf, the actual C cmdline arguments are renamed(reduced) to this so as to use less bytes image

To be clear, running the program from the terminal the usual way and passing in the cmdline arguments works fine, so there's no problem with code.

Would there be a way to fix this?

UPDATE: sorry, even though I've added the argument with specified ctrl+alt+a shortcut, it still wouldn't work, redoing this makes it work for some reason, can't seem to reproduce this any longer