{"action":"closed","issue":{"url":"https://api.github.com/repos/node-inspector/node-inspector/issues/810","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/810/comments","events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/810/events","html_url":"https://github.com/node-inspector/node-inspector/issues/810","id":127908910,"number":810,"title":"debugger ignores breakpoints when running tests with mocha","user":{"login":"ernie58","id":598177,"avatar_url":"https://avatars.githubusercontent.com/u/598177?v=3","gravatar_id":"","url":"https://api.github.com/users/ernie58","html_url":"https://github.com/ernie58","followers_url":"https://api.github.com/users/ernie58/followers","following_url":"https://api.github.com/users/ernie58/following{/other_user}","gists_url":"https://api.github.com/users/ernie58/gists{/gist_id}","starred_url":"https://api.github.com/users/ernie58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernie58/subscriptions","organizations_url":"https://api.github.com/users/ernie58/orgs","repos_url":"https://api.github.com/users/ernie58/repos","events_url":"https://api.github.com/users/ernie58/events{/privacy}","received_events_url":"https://api.github.com/users/ernie58/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T11:58:57Z","updated_at":"2016-01-22T12:18:50Z","closed_at":"2016-01-22T12:18:50Z","body":"I try to debug a mocha test script\r\nI have a breakpoint in my API-controller function (locomotive-js)\r\nI use `npm run test-debug` which translates to:\r\n\r\n    node-debug --web-port 3020 --web-host 192.168.255.254 --debug-port 13002  ./node_modules/mocha/bin/mocha -R spec --delay test/flows/*.js\r\n\r\nTest are running inside a vagrant box (Debian wheezy) with \r\n  - node v4.2.5\r\n  - mocha 2.3.4\r\n  - node-inspector v0.12.5\r\n\r\nThe problem is my breakpoints are completely ignored.\r\n\r\nThe test is halted on the first line of the script, but when I resume it, additional breakpoints in my code get ignored. I'm sure that code is reached because my console.log statements get executed\r\n\r\nIs this a bug are am I doing this the wrong way?\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30078012-debugger-ignores-breakpoints-when-running-tests-with-mocha?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}