{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2119","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2119/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2119/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2119/events","html_url":"https://github.com/facebook/jest/issues/2119","id":190100319,"number":2119,"title":"How to properly debug tests without using the command line debugger?","user":{"login":"alanz1223","id":11506820,"avatar_url":"https://avatars.githubusercontent.com/u/11506820?v=3","gravatar_id":"","url":"https://api.github.com/users/alanz1223","html_url":"https://github.com/alanz1223","followers_url":"https://api.github.com/users/alanz1223/followers","following_url":"https://api.github.com/users/alanz1223/following{/other_user}","gists_url":"https://api.github.com/users/alanz1223/gists{/gist_id}","starred_url":"https://api.github.com/users/alanz1223/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanz1223/subscriptions","organizations_url":"https://api.github.com/users/alanz1223/orgs","repos_url":"https://api.github.com/users/alanz1223/repos","events_url":"https://api.github.com/users/alanz1223/events{/privacy}","received_events_url":"https://api.github.com/users/alanz1223/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T16:46:29Z","updated_at":"2016-11-17T16:46:29Z","closed_at":null,"body":"<!-- *Before creating an issue please make sure you are using the latest version of Jest, try re-installing your node_modules folder and run Jest once with `--no-cache` to see if that fixes the problem you are experiencing.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n\r\n**What is the current behavior?**\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can `npm install` and `npm test`.**\r\n\r\n**What is the expected behavior?**\r\n\r\n**Run Jest again with `--debug` and provide the full configuration it prints. Please mention your node and npm version and operating system.**\r\n\r\nnode v.7\r\njest 16.0.1\r\n\r\nCurrently using VSCode and I am trying to debug a very basic test but I am having great difficulty doing so. I am using the node inspect flag to use the chrome devtools but my debugger statements and breakpoints are being ignored and the test just continues to run. At this point I am considering other debugging mechanisms to run a simple GUI based debugger. Are there any alternatives that you guys have had success using?\r\n\r\nHere are the commands I run\r\n\r\n`node --inspect --debug-brk --harmony node_modules/jest/bin/jest.js -i`\r\n\r\nAs you see I include the `-i` so that the tests run within the same process.\r\nAfter doing this, I paste the given link into chrome and pause at the first line where jest is required, and after pressing \"play\" the test continues the run while ignoring the breakpoints and debugger statements and all the errors are actually logged on the shell and not the console within the devtools as one would expect.\r\n\r\nI've been battling this issue on and off for about a week and would really like to switch to Jest as my testing framework, but that would be impossible if I can't properly debug my tests. "}}
{"actor":{"display_login":"alanz1223"}}