title: VSCode Debugger Exits out on sys functions
body: <p>I am new to python and using the VSCode or any IDE but I have one python file that gets imported by another. I am trying to run a debug so that I can step through the functions. However the first python file has sys functions that the debugger exits out on and I can't get past to my actual code where the functions are called from the second python file that I wrote. Example of that is:</p>
  
  <pre><code>import sys
  import second_file as second
  
  if __name__ =="__main__":
      if len(sys.argv)!=2:
               print("Usage: python first_file.py &lt;filename&gt;")
               sys.exit(1)  //Debugger exits out here
  
      inf = open(sys.argv[1]) //List index out of range error and exits out
  </code></pre>
  
  <p>I was trying to configure the launch json file to somehow work this out and was playing with the args values in the module but so far no luck.</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
  
          {
              "name": "Python: Module",
              "type": "python",
              "request": "launch",
              "module": "Import_module",
              "args":["argv1","argv2","exit"]
          },
          {
              "name": "Python: Current File",
              "type": "python",
              "request": "launch",
              "program": "${file}",
              "console": "integratedTerminal"
          }
      ]
  </code></pre>
  
  <p>}</p>
  
  <p>If anybody could point me to a right direction, I'd really appreciate it.</p>