title: Debugging with "Command Arguments" in Visual Studio not working
body: <p>VS not running WITH the "Command Arguments" I passed in.  What am I not doing right?</p>
  
  <p>Trying to work with "Command Arguments" in Visual Studio.<br>
  I broke it down to a simple little ConsoleApplication program in C.  </p>
  
  <pre><code>#include "pch.h"
  #include &lt;iostream&gt;
  
  int main(int argc, char *argv[])
  {
    printf("\nargv: ");
    for (int i = 0; i &lt; argc; i++)
    {
      printf(" %s", argv[i]);
    }
    printf("\n");
  }
  </code></pre>
  
  <p>I then set the "Command Arguments":  Project: Properties: Debugging:"Command Arguments": mom</p>
  
  <p><a href="https://i.stack.imgur.com/gYYgA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gYYgA.png" alt="enter image description here"></a></p>
  
  <p>I hit the RUN button and this is displayed(my argument is not passed in):</p>
  
  <pre><code>argv:  C:\Users\jack\source\repos\ConsoleApplication45\Debug\ConsoleApplication45.exe
  
  C:\Users\jack\source\repos\ConsoleApplication45\Debug\ConsoleApplication45.exe (process 1812) exited with code 0.
  To automatically close the console when debugging stops, enable Tools-&gt;Options-&gt;Debugging-&gt;Automatically close the console when debugging stops.
  Press any key to close this window . . .
  </code></pre>
  
  <hr>
  
  <p>When I run from the command line I get (Works as I want it to with the parameter passed in: "mom"):</p>
  
  <pre><code>C:\Users\jack\source\repos\ConsoleApplication45\Debug&gt;ConsoleApplication45.exe mom
  
  argv:  ConsoleApplication45.exe mom
  
  C:\Users\jack\source\repos\ConsoleApplication45\Debug&gt;
  </code></pre>
  
  <hr>
  
  <p>Thank you for the link Jean-François Fabre:<br>
  Yes I had to change to x64 from x86.</p>
  
  <p><a href="https://i.stack.imgur.com/Rrlsm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Rrlsm.png" alt="enter image description here"></a></p>