{"action":"created","issue":{"url":"https://api.github.com/repos/gwtproject/gwt/issues/7457","repository_url":"https://api.github.com/repos/gwtproject/gwt","labels_url":"https://api.github.com/repos/gwtproject/gwt/issues/7457/labels{/name}","comments_url":"https://api.github.com/repos/gwtproject/gwt/issues/7457/comments","events_url":"https://api.github.com/repos/gwtproject/gwt/issues/7457/events","html_url":"https://github.com/gwtproject/gwt/issues/7457","id":87066325,"number":7457,"title":"GWT.log() should log deobfuscated stack traces when in Super Dev Mode","user":{"login":"dankurka","id":540913,"avatar_url":"https://avatars.githubusercontent.com/u/540913?v=3","gravatar_id":"","url":"https://api.github.com/users/dankurka","html_url":"https://github.com/dankurka","followers_url":"https://api.github.com/users/dankurka/followers","following_url":"https://api.github.com/users/dankurka/following{/other_user}","gists_url":"https://api.github.com/users/dankurka/gists{/gist_id}","starred_url":"https://api.github.com/users/dankurka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankurka/subscriptions","organizations_url":"https://api.github.com/users/dankurka/orgs","repos_url":"https://api.github.com/users/dankurka/repos","events_url":"https://api.github.com/users/dankurka/events{/privacy}","received_events_url":"https://api.github.com/users/dankurka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gwtproject/gwt/labels/Category-SuperDevMode","name":"Category-SuperDevMode","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dankurka","id":540913,"avatar_url":"https://avatars.githubusercontent.com/u/540913?v=3","gravatar_id":"","url":"https://api.github.com/users/dankurka","html_url":"https://github.com/dankurka","followers_url":"https://api.github.com/users/dankurka/followers","following_url":"https://api.github.com/users/dankurka/following{/other_user}","gists_url":"https://api.github.com/users/dankurka/gists{/gist_id}","starred_url":"https://api.github.com/users/dankurka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankurka/subscriptions","organizations_url":"https://api.github.com/users/dankurka/orgs","repos_url":"https://api.github.com/users/dankurka/repos","events_url":"https://api.github.com/users/dankurka/events{/privacy}","received_events_url":"https://api.github.com/users/dankurka/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-06-10T18:41:45Z","updated_at":"2016-02-05T11:07:46Z","closed_at":null,"body":"Originally reported on Google Code with ID 7460\n```\nFor example, GWT.log(\"something failed\", myException); should dump the deofuscated stack\ntrace to the JavaScript console.\r\n\r\nWe could either send stack traces to the code server for deobfuscation (requiring a\nround trip delay before the message is logged) or load the sourcemap and do it client\nside. Client-side deobfuscation might work in more situations since it can be synchronous\nonce the sourcemap is loaded.\r\n\r\nCurrent as of GWT 2.5 rc 1.\r\nPorted from internal issue tracker: http://b/issue?id=6413577\r\n\n```\n\nReported by `skybrian@google.com` on 2012-06-27 21:58:34\n"},"comment":{"url":"https://api.github.com/repos/gwtproject/gwt/issues/comments/180300087","html_url":"https://github.com/gwtproject/gwt/issues/7457#issuecomment-180300087","issue_url":"https://api.github.com/repos/gwtproject/gwt/issues/7457","id":180300087,"user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T11:07:46Z","updated_at":"2016-02-05T11:07:46Z","body":"@jnehlmeier and the exception should be unwrapped right?\r\n\r\n```\r\nThrowable unwrapped = unwrap(error);\r\n```\r\n\r\n```\r\n  public Throwable unwrap(Throwable e) {\r\n    if(e instanceof UmbrellaException) {\r\n      UmbrellaException ue = (UmbrellaException) e;\r\n      if(ue.getCauses().size() == 1) {\r\n        return unwrap(ue.getCauses().iterator().next());\r\n      }\r\n    }\r\n    return e;\r\n  }\r\n```\r\n\r\n"}}