{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/6631","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/6631/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/6631/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/6631/events","html_url":"https://github.com/facebook/react-native/issues/6631","id":143312951,"number":6631,"title":"Chrome debugging broke (weird breakpoints, no variables shown/console.log'able) in 0.22","user":{"login":"aforty","id":523683,"avatar_url":"https://avatars.githubusercontent.com/u/523683?v=3","gravatar_id":"","url":"https://api.github.com/users/aforty","html_url":"https://github.com/aforty","followers_url":"https://api.github.com/users/aforty/followers","following_url":"https://api.github.com/users/aforty/following{/other_user}","gists_url":"https://api.github.com/users/aforty/gists{/gist_id}","starred_url":"https://api.github.com/users/aforty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforty/subscriptions","organizations_url":"https://api.github.com/users/aforty/orgs","repos_url":"https://api.github.com/users/aforty/repos","events_url":"https://api.github.com/users/aforty/events{/privacy}","received_events_url":"https://api.github.com/users/aforty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T17:39:43Z","updated_at":"2016-03-24T17:39:43Z","closed_at":null,"body":"Hi there,\r\nI upgraded from 0.20 to 0.22 and Chrome debugging went completely off the rails. I had no issue before updating to 0.22. I'm attempting to debug in an iOS project on Chrome 49.\r\n\r\nSome sample code just to demonstrate what I mean.\r\n\r\n```\r\nfunction (someVariable) {\r\n  let someOtherVariable = 123\r\n    , somePromise = getSomePromise(someVariable);\r\n\r\n  somePromise.then(r => {\r\n    if (r.someCondition) {\r\n      doSomething(r);\r\n    }\r\n\r\n    doSomethingElse();\r\n  });\r\n  \r\n  ...\r\n}\r\n```\r\n\r\n- Setting breakpoints acts strangely as it sometimes jumps down a line or two. If I try to add a breakpoint on the `if` line, it will actually end up adding it to the empty line above `doSomethingElse()`.\r\n- Variables don't show correctly. If I set a breakpoint on `somePromise.then(r => {` (line 4) and I hover over `someOtherVariable` then Chrome Debugger won't show anything. If I go into the console and type `console.log(someOtherVariable)` I get an error `VM144:1 Uncaught ReferenceError: someOtherVariable is not defined(…)`. I can view the value of `someVariable` just fine if I hover over it, this variable was passed into the method.\r\n\r\nThese issues are sporadic and not very consistent and I haven't noticed any pattern as to when it happens and doesn't happen. Very odd behavior and I'm not sure what I can do about this."}}