{"action":"closed","issue":{"url":"https://api.github.com/repos/teambition/then.js/issues/18","labels_url":"https://api.github.com/repos/teambition/then.js/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/teambition/then.js/issues/18/comments","events_url":"https://api.github.com/repos/teambition/then.js/issues/18/events","html_url":"https://github.com/teambition/then.js/issues/18","id":96492598,"number":18,"title":"thenjs 里面如何获取具体报错的文件和行号？","user":{"login":"no7dw","id":2989631,"avatar_url":"https://avatars.githubusercontent.com/u/2989631?v=3","gravatar_id":"","url":"https://api.github.com/users/no7dw","html_url":"https://github.com/no7dw","followers_url":"https://api.github.com/users/no7dw/followers","following_url":"https://api.github.com/users/no7dw/following{/other_user}","gists_url":"https://api.github.com/users/no7dw/gists{/gist_id}","starred_url":"https://api.github.com/users/no7dw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/no7dw/subscriptions","organizations_url":"https://api.github.com/users/no7dw/orgs","repos_url":"https://api.github.com/users/no7dw/repos","events_url":"https://api.github.com/users/no7dw/events{/privacy}","received_events_url":"https://api.github.com/users/no7dw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T07:18:29Z","updated_at":"2015-07-22T07:45:10Z","closed_at":"2015-07-22T07:45:10Z","body":"使用thenjs过程中，看到log：\r\nThenjs caught error:  [TypeError: Cannot read property 'length' of undefined]\r\n但无具体文件，具体行号。调试找问题会比较不变。\r\n看到是then.js onerror 里面log 出来的：\r\n    \r\n       // 全局 error 监听\r\n      Thenjs.onerror = function (error) {\r\n        console.error('Thenjs caught error: ', error)\r\n        throw error\r\n       }\r\n\r\n看起来 error 只是string。\r\n有什么办法知道文件&行号吗？\r\nthanks in advance :-)\r\n"}}