title: Debug application which is run using pm2
body: <p>Application is run by</p>
  
  <pre><code>pm2 start app.js
  </code></pre>
  
  <p>or</p>
  
  <pre><code>pm2 start config.json
  </code></pre>
  
  <p>I want to debug my application locally using node_inspector. I added <code>debug</code> argument</p>
  
  <pre><code>pm2 start --node-args="--debug=7000" app.js
  </code></pre>
  
  <p>It works fine but if I provide <code>config.json</code> instead of script <code>app.js</code> I don't know how to pass arguments about debug. Next piece of config doesn't work</p>
  
  <pre><code>{
    "apps": [
      {
        "name": "myName",
        "script": "app.js",
        "args": "['--debug=7000']"
        ............
        }
      ]
  }
  </code></pre>
  
  <p>So How to debug application which is run by pm2 and using config?</p>