title: In VSCode, unable to use args in launch.json to pass command-line arguments to C++ project using cmake
body: <p>I am using VSCode to debug a C++ project configured and built using CMake tools (extension in VScode).</p>
  <p>I have to use below command to trigger the execution:
  <code> ./cbs_ta -i ifile.yaml -o ofile.yaml</code></p>
  <p>As you can see, there are two command line inputs (-i and file name for input file) (-o and file name for output file). I read that using &quot;args&quot; parameter in launch.json, we can pass command line arguments. So I modified &quot;args&quot; in launch.json as follows:
  <code>&quot;args&quot;: [&quot;-i&quot;, &quot;ifile_1.yaml&quot;, &quot;-o&quot;, &quot;ofile_1.yaml&quot;],</code></p>
  <p>Unfortunately, I am getting error that
  <code>the option '--input' is required but missing</code></p>
  <p>I used <strong>CMake Tools</strong> extension to configure and build the targets.</p>
  <p>Please help.</p>
  <p><strong>Edit:</strong> I have identified that when I click &quot;debug&quot; menu option in CMake in VSCode, the debug session starts but it does not take into consideration <code>launch.json</code>. I identified it since I kept ```&quot;stopAtEntry&quot;: true''' but it did not stop at entry point.</p>