{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6237","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6237/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6237/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6237/events","html_url":"https://github.com/electron/electron/issues/6237","id":162281810,"number":6237,"title":"Electron Async/Promise Error Handling And Stack Traces","user":{"login":"francoislaberge","id":1845,"avatar_url":"https://avatars.githubusercontent.com/u/1845?v=3","gravatar_id":"","url":"https://api.github.com/users/francoislaberge","html_url":"https://github.com/francoislaberge","followers_url":"https://api.github.com/users/francoislaberge/followers","following_url":"https://api.github.com/users/francoislaberge/following{/other_user}","gists_url":"https://api.github.com/users/francoislaberge/gists{/gist_id}","starred_url":"https://api.github.com/users/francoislaberge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoislaberge/subscriptions","organizations_url":"https://api.github.com/users/francoislaberge/orgs","repos_url":"https://api.github.com/users/francoislaberge/repos","events_url":"https://api.github.com/users/francoislaberge/events{/privacy}","received_events_url":"https://api.github.com/users/francoislaberge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/discussion","name":"discussion","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-25T13:45:11Z","updated_at":"2016-06-30T12:27:37Z","closed_at":null,"body":"* Electron version:\r\n1.0.0+\r\n* Operating system:\r\nOSX/Mac\r\n\r\nhey all,\r\n\r\nI've been trying to improve our logging/stack traces, and error handling best practices in Electron. I thought I had a handle on getting async stack traces using longjohn (when running in pure node) and just using the 'Async' flag when running in a renderer process. But when you want promises to give you async stack traces and have everything working in concert it's starting to make my head spin with all the choices and considerations.\r\n\r\nWhat kind of tooling do you guys use. Do you tend to stay away from Promises, any recommendations on a library that would get you async stack traces for Promises and any other classic async code, ensuring that the stack traced files/functions are clickable in the console and jump to the original source (not transpiled versions).\r\n\r\nI scheduled 2 days to come up with a new library and strategy and I'm definitely going over time on this one as I still don't have it quite right, any pointers and thoughts would be appreciated."},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/229643537","html_url":"https://github.com/electron/electron/issues/6237#issuecomment-229643537","issue_url":"https://api.github.com/repos/electron/electron/issues/6237","id":229643537,"user":{"login":"darrrk","id":1832800,"avatar_url":"https://avatars.githubusercontent.com/u/1832800?v=3","gravatar_id":"","url":"https://api.github.com/users/darrrk","html_url":"https://github.com/darrrk","followers_url":"https://api.github.com/users/darrrk/followers","following_url":"https://api.github.com/users/darrrk/following{/other_user}","gists_url":"https://api.github.com/users/darrrk/gists{/gist_id}","starred_url":"https://api.github.com/users/darrrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrrk/subscriptions","organizations_url":"https://api.github.com/users/darrrk/orgs","repos_url":"https://api.github.com/users/darrrk/repos","events_url":"https://api.github.com/users/darrrk/events{/privacy}","received_events_url":"https://api.github.com/users/darrrk/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T12:27:37Z","updated_at":"2016-06-30T12:27:37Z","body":"Unexpectedly for me, *bluebird* works some good with devtools async checkbox and *co*.\r\nIt find last *co* generator execution in prev stacks, remains only to find error inside it generator.\r\nSorry for my prev messages, I was wrong."}}
{"actor":{"display_login":"darrrk"}}