Title: Unable to debug global scripts · Issue #6166 · angular/angular-cli · GitHub
Open Graph Title: Unable to debug global scripts · Issue #6166 · angular/angular-cli
X Title: Unable to debug global scripts · Issue #6166 · 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.0.0-rc.1 node: 6.10.0 os: win32 x64 @angular/common: 2.4.10 @angular/compiler: 2.4...
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.0.0-rc.1 node: 6.10.0 os: win32 x64 @angul...
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.0.0-rc.1 node: 6.10.0 os: win32 x64 @an...
Opengraph URL: https://github.com/angular/angular-cli/issues/6166
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to debug global scripts","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### 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### Versions.\r\n\r\n@angular/cli: 1.0.0-rc.1\r\nnode: 6.10.0\r\nos: win32 x64\r\n@angular/common: 2.4.10\r\n@angular/compiler: 2.4.10\r\n@angular/core: 2.4.10\r\n@angular/forms: 2.4.10\r\n@angular/http: 2.4.10\r\n@angular/platform-browser: 2.4.10\r\n@angular/platform-browser-dynamic: 2.4.10\r\n@angular/router: 3.4.10\r\n@angular/upgrade: 2.4.10\r\n@angular/cli: 1.0.0-rc.1\r\n@angular/compiler-cli: 2.4.10\r\n\r\n\r\n### Repro steps.\r\n1. Add a global script to .angular-cli.json\r\n2. Start with ng serve\r\n3. Use your favorite browser's dev tools and attempt to set a break point in your global script.\r\n\r\nI can search for the script, but instead of finding the scripts source code, I find webpackified script.\r\n\r\n```\r\nmodule.exports = \"'use strict'; \u003csnipped>\"\r\n\r\n//////////////////\r\n// WEBPACK FOOTER\r\n// ./~/raw-loader!./~/source-map-loader!./app/src/app.js\r\n// module id = 875\r\n// module chunks = 0\r\n```\r\n\r\n### The log given by the failure.\r\nN/A\r\n\r\n\r\n### Desired functionality.\r\nI should be able to search directly for the script and set a break point. As of now, the only way to set a break point in a global script is to modify the source and add a debugger; statement and reload.\r\n\r\nThis is a hybrid app where I'm loading the existing AngularJS JS code using global scripts, so being able to debug these scripts easily is desired.\r\n\r\nI appreciate any help!\r\n\r\n\r\n","author":{"url":"https://github.com/franktroia","@type":"Person","name":"franktroia"},"datePublished":"2017-05-03T13:34:44Z","url":"https://github.com/angular/angular-cli/issues/6166"}
| 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:00b9ab07-0d75-e54c-de8e-0d4ff84f263b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7F2:31EE77:2B9C0AC:391E0D0:6B05644D |
| html-safe-nonce | a36d8aa7ea48857d9adc74ba8a59e8ccdcea3e971261775e224e6110b72d643d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0YyOjMxRUU3NzoyQjlDMEFDOjM5MUUwRDA6NkIwNTY0NEQiLCJ2aXNpdG9yX2lkIjoiODAxNTI2NjgwOTk0OTU0NTU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9a0081dfb3e7aad068bfdf813b2e7e7f5015cb3bf36f5096d4350e4f46d64eb7 |
| hovercard-subject-tag | issue:225987726 |
| 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/6166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdfb1519ab89dee20b0c3307a7fbf78608504ebe013d9fcad500427d6c466d6c/angular/angular-cli/issues/6166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdfb1519ab89dee20b0c3307a7fbf78608504ebe013d9fcad500427d6c466d6c/angular/angular-cli/issues/6166 |
| 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.0.0-rc.1 node: 6.10.0 os: win32 x64 @angul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | franktroia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331 |
| 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 | f6d69234e682c947a48074340e69d45d5901de31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width