Title: ng test debug broken in v1.2.1 with vs code recipes configuration · Issue #7035 · angular/angular-cli · GitHub
Open Graph Title: ng test debug broken in v1.2.1 with vs code recipes configuration · Issue #7035 · angular/angular-cli
X Title: ng test debug broken in v1.2.1 with vs code recipes configuration · Issue #7035 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.1 node: 8.1.3 os: win32 x64 && @angular/cli: 1.1.1 node: 8.1.3 os: win32 x64 VS C...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.1 node: 8.1.3 os: win32 x64 && @angular/c...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.1 node: 8.1.3 os: win32 x64 &&...
Opengraph URL: https://github.com/angular/angular-cli/issues/7035
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng test debug broken in v1.2.1 with vs code recipes configuration","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n\r\n### Versions.\r\n@angular/cli: 1.2.1\r\nnode: 8.1.3\r\nos: win32 x64\r\n&&\r\n@angular/cli: 1.1.1\r\nnode: 8.1.3\r\nos: win32 x64\r\n\r\nVS Code\r\nVersion 1.13.1\r\n\r\n\r\n### Repro steps.\r\n```\r\nng new repro\r\ncd repro\r\nnpm i -D @angular/cli@1.1.1\r\n// Follow steps for configuring debugging in vscode here: https://github.com/weinand/vscode-recipes/tree/master/Angular-CLI\r\n// - Instructions do warn that this may not work with other \r\nnpm t\r\n// npm t => ng test\r\n// Set a break point in app.component.spec.ts in one of the unit tests\r\n// In vscode, debug \"Launch Chrome with ng test\"\r\n// - should open Chrome to localhost:9876/debug.html\r\n// - note that the breakpoint remains a red dot and is valid\r\n// Click on link under 'AppComponent' for test where break point is set.\r\n// Breakpoint should get hit as expected\r\n\r\nnpm i -D @angular/cli@1.2.1\r\n// - I think it actually breaks in 1.1.2 or 1.1.3\r\n// - webpack gets bumped from 1.4.1 to 1.4.2\r\n// Rerun instructions above from setting a breakpoint on down\r\n// When debug is run in vscode, breakpoint turns from solid red dot to hollowed gray circle\r\n```\r\nLooking at the sources in the /debug.html page, the difference is the missing \r\n\r\n\r\n### The log given by the failure.\r\nBreakpoint in vs code goes from a red dot to gray circle with the error:\r\n\"Breakpoint ignored because generated code not found (source map problem?)\"\r\n\r\n\r\n### Desired functionality.\r\nTo be able to debug an angular project's unit tests setup with angular-cli >v1.1.1\r\n\r\n\r\n### Mention any other details that might be useful.\r\nThis may or may not be a bug, perse. ng-cli is most likely working as anticipated but due to changes in webpack, the location of source-map files (or configuration to output them to the browser) may need to be updated. Not sure what that configuration should look like though.","author":{"url":"https://github.com/nwayve","@type":"Person","name":"nwayve"},"datePublished":"2017-07-18T15:31:03Z","url":"https://github.com/angular/angular-cli/issues/7035"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4489ab3a-ebe6-d079-54bf-3735c2f2c225 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9746:785A9:305943C:3D67777:6B01C7D5 |
| html-safe-nonce | 11141416645e441fe9dd2825b33e7a6409580718ab96f7bf4de2273a80d885d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzQ2Ojc4NUE5OjMwNTk0M0M6M0Q2Nzc3Nzo2QjAxQzdENSIsInZpc2l0b3JfaWQiOiI3MTE0NzEyMjI3ODMxMjAzNzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 92fbee8933b75571c708975c33916978913951a2a10787a25e69bcdc4cc389f4 |
| hovercard-subject-tag | issue:243757781 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/7035/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7557d53ab3307b52890fe0ec6a219569a3772495961000321bd4beaa91e9284c/angular/angular-cli/issues/7035 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7557d53ab3307b52890fe0ec6a219569a3772495961000321bd4beaa91e9284c/angular/angular-cli/issues/7035 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.1 node: 8.1.3 os: win32 x64 && @angular/c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nwayve |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width