{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/1214","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/1214/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/1214/events","html_url":"https://github.com/Unitech/PM2/issues/1214","id":71325583,"number":1214,"title":"Debug application which is run using pm2","user":{"login":"Nawa","id":441946,"avatar_url":"https://avatars.githubusercontent.com/u/441946?v=3","gravatar_id":"","url":"https://api.github.com/users/Nawa","html_url":"https://github.com/Nawa","followers_url":"https://api.github.com/users/Nawa/followers","following_url":"https://api.github.com/users/Nawa/following{/other_user}","gists_url":"https://api.github.com/users/Nawa/gists{/gist_id}","starred_url":"https://api.github.com/users/Nawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nawa/subscriptions","organizations_url":"https://api.github.com/users/Nawa/orgs","repos_url":"https://api.github.com/users/Nawa/repos","events_url":"https://api.github.com/users/Nawa/events{/privacy}","received_events_url":"https://api.github.com/users/Nawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T15:46:57Z","updated_at":"2015-04-27T15:49:15Z","closed_at":null,"body":"Application is run by\r\n\r\n\tpm2 start app.js\r\nor\r\n\r\n\tpm2 start config.json\r\nI want to debug my application locally using node_inspector. I added debug argument\r\n\r\n\tpm2 start --node-args=\"--debug=7000\" app.js\r\nIt works fine but if I provide config.json instead of script app.js I don't know how to pass arguments about debug. Next piece of config doesn't work\r\n\r\n    {\r\n      \"apps\": [\r\n        {\r\n          \"name\": \"myName\",\r\n          \"script\": \"app.js\",\r\n          \"args\": \"['--debug=7000']\"\r\n          ............\r\n          }\r\n        ]\r\n    }\r\nSo How to debug application which is run by pm2 and using config?"},"comment":{"url":"https://api.github.com/repos/Unitech/PM2/issues/comments/96719432","html_url":"https://github.com/Unitech/PM2/issues/1214#issuecomment-96719432","issue_url":"https://api.github.com/repos/Unitech/PM2/issues/1214","id":96719432,"user":{"login":"jshkurti","id":7647602,"avatar_url":"https://avatars.githubusercontent.com/u/7647602?v=3","gravatar_id":"","url":"https://api.github.com/users/jshkurti","html_url":"https://github.com/jshkurti","followers_url":"https://api.github.com/users/jshkurti/followers","following_url":"https://api.github.com/users/jshkurti/following{/other_user}","gists_url":"https://api.github.com/users/jshkurti/gists{/gist_id}","starred_url":"https://api.github.com/users/jshkurti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshkurti/subscriptions","organizations_url":"https://api.github.com/users/jshkurti/orgs","repos_url":"https://api.github.com/users/jshkurti/repos","events_url":"https://api.github.com/users/jshkurti/events{/privacy}","received_events_url":"https://api.github.com/users/jshkurti/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T15:49:15Z","updated_at":"2015-04-27T15:49:15Z","body":"https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#json-app-declaration"}}