{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10865","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10865/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10865/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10865/events","html_url":"https://github.com/emberjs/ember.js/issues/10865","id":67646942,"number":10865,"title":"Make  \"calling set on destroyed object\" error more descriptive and helpful in debugging.","user":{"login":"rafalp","id":750553,"avatar_url":"https://avatars.githubusercontent.com/u/750553?v=3","gravatar_id":"","url":"https://api.github.com/users/rafalp","html_url":"https://github.com/rafalp","followers_url":"https://api.github.com/users/rafalp/followers","following_url":"https://api.github.com/users/rafalp/following{/other_user}","gists_url":"https://api.github.com/users/rafalp/gists{/gist_id}","starred_url":"https://api.github.com/users/rafalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafalp/subscriptions","organizations_url":"https://api.github.com/users/rafalp/orgs","repos_url":"https://api.github.com/users/rafalp/repos","events_url":"https://api.github.com/users/rafalp/events{/privacy}","received_events_url":"https://api.github.com/users/rafalp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-10T17:45:00Z","updated_at":"2015-12-08T22:36:14Z","closed_at":null,"body":"I wish to request Ember.js developers to consider changing error raised when set() is called on destroyed to include information that would help developers isolate faulty part of application and thus debug it more easily.\r\n\r\nWhile I am yet to be biten by this error by my app, I already experienced plenty of day-long debugging sessions when my tests suite exploded with this error, and I was left in the dark about origins of problem.\r\n\r\nMost basic solution for this issue would be to include name of property that was attempted to be set on destroyed object:\r\n\r\n``Assertion Failed: tried to set 'PROPERTY' on destroyed object. This is usually caused by asynchronous code (i.e. Ember.run.later) attempting to change object state after it was destroyed.``\r\n\r\nThis change alone would be great improvement towards current situation. However I would like to take this step further, and thus make dev builds of Ember.js also `console.log` new value for property as well as object for which ``set`` failed."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/163041732","html_url":"https://github.com/emberjs/ember.js/issues/10865#issuecomment-163041732","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10865","id":163041732,"user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T22:36:14Z","updated_at":"2015-12-08T22:36:14Z","body":"Any progress on this? Seems like a very simple fix to just include the keyname of the property..."}}