{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/33","repository_url":"https://api.github.com/repos/Microsoft/vscode-node-debug","labels_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/33/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/33/events","html_url":"https://github.com/Microsoft/vscode-node-debug/issues/33","id":123799737,"number":33,"title":"Can't debug Karma tests launched in PhantomJS","user":{"login":"aides","id":1869158,"avatar_url":"https://avatars.githubusercontent.com/u/1869158?v=3","gravatar_id":"","url":"https://api.github.com/users/aides","html_url":"https://github.com/aides","followers_url":"https://api.github.com/users/aides/followers","following_url":"https://api.github.com/users/aides/following{/other_user}","gists_url":"https://api.github.com/users/aides/gists{/gist_id}","starred_url":"https://api.github.com/users/aides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aides/subscriptions","organizations_url":"https://api.github.com/users/aides/orgs","repos_url":"https://api.github.com/users/aides/repos","events_url":"https://api.github.com/users/aides/events{/privacy}","received_events_url":"https://api.github.com/users/aides/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-12-24T12:39:33Z","updated_at":"2016-02-03T21:32:33Z","closed_at":null,"body":"In pre 0.9.1 versions I had the following configuration and it worked fine, I could set breakpoints in the VSCode and they were hit when tests executed. After the 0.9.1 update the tests are executed however breakpoints are not hit anymore. \r\n\r\nIt could be awesome if this capability returned again.\r\n\r\nAs for alternatives, I see that I could switch to using new chrome-debug extension, and run tests in a chrome window, but this is not ideal. Keeping everything in the console output windows makes things clearer. \r\n\r\nKarma v0.13.14\r\nPhantomJS v1.9.18\r\n\r\nlaunch.json:\r\n```\r\n{\r\n    \"name\": \"Run Karma tests\",\r\n    \"type\": \"node\",\r\n    \"program\": \"<path>/node_modules/karma/bin/karma\",\r\n    \"args\": [\r\n        \"start\",\r\n        \"<path>/karma.conf.js\"\r\n    ],\r\n    \"runtimeArgs\": [\r\n        \"--nolazy\"\r\n    ],\r\n    \"stopOnEntry\": false,\r\n    \"sourceMaps\": false\r\n},\r\n```\r\n\r\nkarma.conf.js:\r\n```\r\nmodule.exports = function(config) {\r\n  config.set({\r\n    frameworks: ['jasmine'],\r\n    files: [...],\r\n    preprocessors: {\r\n      'src/**/*.jade': 'ng-jade2js',\r\n    },\r\n    ngHtml2JsPreprocessor: {\r\n      stripPrefix: 'src/'\r\n    },\r\n    ngJade2JsPreprocessor: {\r\n      stripPrefix: 'src/',\r\n      moduleName: 'templates'\r\n    },\r\n    exclude: [],\r\n    port: 9876,\r\n    logLevel: config.LOG_INFO,\r\n    autoWatch: true,\r\n    reporters: ['mocha', 'junit'],\r\n    junitReporter: {\r\n      outputDir: 'tmp/test_results',\r\n      outputFile: 'webtests.xml', \r\n      suite: 'ClientSuccessWebUnitTests', \r\n      useBrowserName: false \r\n    },\r\n    browsers: ['PhantomJS'],\r\n    singleRun: false\r\n  });\r\n};\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/comments/179481325","html_url":"https://github.com/Microsoft/vscode-node-debug/issues/33#issuecomment-179481325","issue_url":"https://api.github.com/repos/Microsoft/vscode-node-debug/issues/33","id":179481325,"user":{"login":"aides","id":1869158,"avatar_url":"https://avatars.githubusercontent.com/u/1869158?v=3","gravatar_id":"","url":"https://api.github.com/users/aides","html_url":"https://github.com/aides","followers_url":"https://api.github.com/users/aides/followers","following_url":"https://api.github.com/users/aides/following{/other_user}","gists_url":"https://api.github.com/users/aides/gists{/gist_id}","starred_url":"https://api.github.com/users/aides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aides/subscriptions","organizations_url":"https://api.github.com/users/aides/orgs","repos_url":"https://api.github.com/users/aides/repos","events_url":"https://api.github.com/users/aides/events{/privacy}","received_events_url":"https://api.github.com/users/aides/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T21:32:33Z","updated_at":"2016-02-03T21:32:33Z","body":"@weinand thanks for coming back here. I've created a repo with a minimal set up for reproducing here https://github.com/aides/vscodekarma\r\n\r\nAfter cloning, one should do\r\n1) npm install\r\n2) bower install\r\n3) open the folder in the VSCode, \r\n4) set breakpoint at line 9 in src/app/app.spec.js\r\n5) Hit F5 to start debugging\r\n\r\n**Expected**: breakpoint is hit and I recall I definitely saw this working on pre v0.9.1\r\n**Actual**: breakpoint is not hit\r\n\r\n**Notes**: I've managed to find VSCode v0.8.0 and saw that breakpoint was not hit either and that is strange. I did not manage to find v0.7.0 installer for another check. If you could provide me with 0.7.0 installer or a link I could do more checks on my own.\r\n\r\nAlso, if you think that the case is not realistic, please let me know why it should not work as I would expect."}}