title: How do I pass a command line argument while starting up GDB in Linux?
body: <p>I have to debug a program that has errors in it as part of my assignment. However, I must first pass command line arguments in order to solve this problem.</p>
  
  <p>I do:</p>
  
  <pre><code>gdb -tui InsertionSortWithErrors
  </code></pre>
  
  <p>which works, but after that I don't know how to pass arguments. I used <code>gdb -help</code> and it says something about <code>--args</code> which I also tried and it didn't work.</p>
  
  <p>I want to be able to get the debugger+the GUIand pass command line arguments.</p>