{"action":"created","issue":{"url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/103","labels_url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/103/comments","events_url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/103/events","html_url":"https://github.com/kiddkai/atom-node-debugger/issues/103","id":118890667,"number":103,"title":"Use package.json 's main file instead of current opened file","user":{"login":"dot-louis","id":1891109,"avatar_url":"https://avatars.githubusercontent.com/u/1891109?v=3","gravatar_id":"","url":"https://api.github.com/users/dot-louis","html_url":"https://github.com/dot-louis","followers_url":"https://api.github.com/users/dot-louis/followers","following_url":"https://api.github.com/users/dot-louis/following{/other_user}","gists_url":"https://api.github.com/users/dot-louis/gists{/gist_id}","starred_url":"https://api.github.com/users/dot-louis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dot-louis/subscriptions","organizations_url":"https://api.github.com/users/dot-louis/orgs","repos_url":"https://api.github.com/users/dot-louis/repos","events_url":"https://api.github.com/users/dot-louis/events{/privacy}","received_events_url":"https://api.github.com/users/dot-louis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kiddkai/atom-node-debugger/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-25T17:52:57Z","updated_at":"2015-11-30T21:15:48Z","closed_at":null,"body":"Hi, I just discovered this package and although nodeJs debuggers are at the beginning, I think this one is pretty cool.\r\n\r\nAnyway I usually run the same file (server.js) over and over again so it would be cool to be able to specify it somewhere so I don't have to open said file each time I run the debugger.\r\n\r\nJust a quick thought:\r\nYou could not simply add a package setting for it, because the default file would likely change between projects. So maybe you could use the package.json 's *main* property to figure out the main file.\r\nCheers."},"comment":{"url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/comments/160763828","html_url":"https://github.com/kiddkai/atom-node-debugger/issues/103#issuecomment-160763828","issue_url":"https://api.github.com/repos/kiddkai/atom-node-debugger/issues/103","id":160763828,"user":{"login":"codecontemplator","id":3386085,"avatar_url":"https://avatars.githubusercontent.com/u/3386085?v=3","gravatar_id":"","url":"https://api.github.com/users/codecontemplator","html_url":"https://github.com/codecontemplator","followers_url":"https://api.github.com/users/codecontemplator/followers","following_url":"https://api.github.com/users/codecontemplator/following{/other_user}","gists_url":"https://api.github.com/users/codecontemplator/gists{/gist_id}","starred_url":"https://api.github.com/users/codecontemplator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecontemplator/subscriptions","organizations_url":"https://api.github.com/users/codecontemplator/orgs","repos_url":"https://api.github.com/users/codecontemplator/repos","events_url":"https://api.github.com/users/codecontemplator/events{/privacy}","received_events_url":"https://api.github.com/users/codecontemplator/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:15:48Z","updated_at":"2015-11-30T21:15:48Z","body":"@kiddkai I think you are right in general concerning storage of debug options. The [atom project-manager package](https://atom.io/packages/project-manager) improves the project support for atom so that a project can store custom options. This would be a nice way to store debug options. However, I am not 100% sure that is worth taking that dependency,\r\n\r\nHowever, digging up the startup file from the package.json could be be viewed as just a way to find a good default like @Alaneor suggests.\r\n\r\nDoes this make sense?"}}