I\'m developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the ar
This may help some people who still have problems. I use Visual Studio 2015 and I could only pass the arguments when I changed the definition of argv.
argv
Instead of
int main(int argc, char **argv){ }
I had to use
int main(int argc, char *argv[]){ }
I do not know why it was necessary, but it works.