Depurar o código no navegador - resolvido

angular.json

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "comprasfood": {
      "projectType": "application",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "preserveSymlinks": true,
            "outputPath": "dist/comprasfood",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "inlineStyleLanguage": "scss",
            "allowedCommonJsDependencies": [
              "moment",
              "jszip",
              "devexpress-diagram",
              "devexpress-gantt",
              "devextreme-quill",
              "lodash",
              "angular2-text-mask",
              "sockjs-client",
              "js-brasil"
            ],
            "assets": [
              "src/favicon.ico",
              "src/assets",
              "src/app/main/angular-material-elements"
            ],
            "styles": [
              "./node_modules/@angular/material/prebuilt-themes/pink-bluegrey.css",
              "./node_modules/primeicons/primeicons.css",
              "./node_modules/primeng/resources/themes/saga-blue/theme.css",
              "./node_modules/primeng/resources/primeng.min.css",
              "./node_modules/devextreme/dist/css/dx.common.css",
              "./node_modules/devextreme/dist/css/dx.light.css",
              "./node_modules/datatables.net-dt/css/jquery.dataTables.css",
              "./node_modules/ngx-toastr/toastr.css",
              "src/styles.scss",
              "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.js",
              "node_modules/datatables.net/js/jquery.dataTables.js",
              "node_modules/bootstrap/dist/js/bootstrap.js"
            ],
            "stylePreprocessorOptions": {
              "includePaths": ["node_modules"]
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "namedChunks": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "6mb",
                  "maximumError": "10mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            },
            "development": {
              "buildOptimizer": false,
              "optimization": false,
              "vendorChunk": true,
              "extractLicenses": false,
              "sourceMap": true,
              "namedChunks": true
            },
            "ec": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            },
            "hmr": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ],
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.hmr.ts"
                }
              ]
            },
            "hom": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.hom.ts"
                }
              ],
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "6mb",
                  "maximumError": "10mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            }
          },
          "defaultConfiguration": ""
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "comprasfood:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "comprasfood:build:production"
            },
            "hmr": {
              "hmr": true,
              "browserTarget": "comprasfood:build:hmr"
            },
            "ec": {
              "browserTarget": "comprasfood:build:ec"
            },
            "hom": {
              "browserTarget": "comprasfood:build:hom"
            },
            "development": {
              "browserTarget": "comprasfood:build:development"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "comprasfood:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.scss",
              "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css"
            ],
            "scripts": []
          }
        },
        "lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "src/**/*.ts",
              "src/**/*.html"
            ]
          }
        },
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "comprasfood:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "comprasfood:serve:production"
            }
          }
        }
      }
    }
  },
  "cli": {
    "analytics": "2188e411-a8aa-4a4c-a194-d4fae869ce45",
    "cache": {
      "enabled": false
    }
  }
}
**package.json**
{
  "name": "comprasfood",
  "version": "0.0.1",
  "scripts": {
    "ng": "ng",
    "start": "ng serve -o --port 4400",
    "build:hom": "ng build --configuration production --c=hom",
    "build:prod": "ng build --configuration production",
    "build": "ng build --configuration development --max-old-space-size=14096",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "sonar": "sonar-scanner"
  },
  "private": true,
  "dependencies": {
    "@angular-material-components/datetime-picker": "9.0.0",
    "@angular-material-components/file-input": "9.0.0",
    "@angular/animations": "15.1.3",
    "@angular/cdk": "^15.1.3",
    "@angular/common": "15.1.3",
    "@angular/compiler": "15.1.3",
    "@angular/core": "15.1.3",
    "@angular/flex-layout": "^15.0.0-beta.42",
    "@angular/forms": "15.1.3",
    "@angular/material": "15.1.3",
    "@angular/material-moment-adapter": "15.1.3",
    "@angular/platform-browser": "15.1.3",
    "@angular/platform-browser-dynamic": "15.1.3",
    "@angular/router": "15.1.3",
    "@ngrx/effects": "15.2.1",
    "@ngrx/router-store": "15.2.1",
    "@ngrx/store": "15.2.1",
    "@ngrx/store-devtools": "15.2.1",
    "@ngx-translate/core": "^14.0.0",
    "@stomp/stompjs": "^6.1.2",
    "@types/intro.js": "^5.1.0",
    "angular-calendar": "0.31.0",
    "angular-datatables": "15.0.0",
    "angular-in-memory-web-api": "0.15.0",
    "angular2-text-mask": "9.0.0",
    "bootstrap": "5.2.3",
    "classlist.js": "1.1.20150312",
    "d3": "7.8.2",
    "datatables.net": "1.13.2",
    "datatables.net-dt": "1.13.2",
    "date-fns": "2.29.3",
    "devextreme": "22.2.4",
    "devextreme-angular": "22.2.4",
    "igniteui-theming": "^1.3.0",
    "jquery": "3.6.3",
    "jqwidgets-ng": "^15.1.0",
    "js-brasil": "2.5.3",
    "lodash": "4.17.21",
    "moment": "2.29.4",
    "ng2-pdf-viewer": "^6.4.1",
    "ngrx-store-freeze": "0.2.4",
    "ngx-color-picker": "13.0.0",
    "ngx-currency": "^2.5.3",
    "ngx-mat-select-search": "^7.0.0",
    "ngx-perfect-scrollbar": "^10.1.1",
    "ngx-toastr": "^16.0.2",
    "ngx-webstorage": "^11.1.1",
    "perfect-scrollbar": "1.5.0",
    "primeicons": "^6.0.1",
    "primeng": "^15.2.0",
    "prismjs": "^1.29.0",
    "rxjs": "7.8.0",
    "sockjs-client": "^1.6.1",
    "sonar-scanner": "^3.1.0",
    "tslib": "2.5.0",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "15.1.4",
    "@angular-eslint/builder": "^15.2.0",
    "@angular-eslint/eslint-plugin": "^15.2.0",
    "@angular-eslint/eslint-plugin-template": "^15.2.0",
    "@angular-eslint/schematics": "^15.2.0",
    "@angular-eslint/template-parser": "^15.2.0",
    "@angular/cli": "15.1.4",
    "@angular/compiler-cli": "15.1.3",
    "@angular/language-service": "15.1.3",
    "@angularclass/hmr": "^3.0.0",
    "@types/datatables.net": "^1.10.19",
    "@types/jasmine": "3.6.1",
    "@types/jquery": "^3.5.5",
    "@types/lodash": "4.14.165",
    "@types/node": "12.19.4",
    "@types/prismjs": "^1.26.0",
    "@types/sockjs-client": "^1.5.1",
    "@typescript-eslint/eslint-plugin": "5.48.1",
    "@typescript-eslint/parser": "5.48.1",
    "codelyzer": "^6.0.2",
    "eslint": "^8.11.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsdoc": "39.8.0",
    "eslint-plugin-prefer-arrow": "^1.2.3",
    "eslint-plugin-prettier": "^4.0.0",
    "jasmine-core": "3.6.0",
    "jasmine-spec-reporter": "5.0.2",
    "karma": "6.4.1",
    "karma-chrome-launcher": "3.1.0",
    "karma-jasmine": "4.0.1",
    "karma-jasmine-html-reporter": "1.5.4",
    "mini-css-extract-plugin": "^2.7.2",
    "moment-locales-webpack-plugin": "^1.2.0",
    "protractor": "7.0.0",
    "ts-node": "8.3.0",
    "typescript": "4.9.5"
  }
}

tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "typeRoots": ["node_modules/@types"],
    "baseUrl": "./src",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "resolveJsonModule": true,
    "target": "es2017",
    "module": "es2020",
    "lib": ["es2020", "dom"],
    "paths": {
      "@fuse": ["@fuse/"],
      "@app": ["app/"]
    }
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false
  }
}

O que está faltando na configuração para eu depurar o código no navegador ?

Consegui. ficando assim:
angular.json

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "comprasfood": {
      "projectType": "application",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "preserveSymlinks": true,
            "outputPath": "dist/comprasfood",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "inlineStyleLanguage": "scss",
            "allowedCommonJsDependencies": [
              "moment",
              "jszip",
              "devexpress-diagram",
              "devexpress-gantt",
              "devextreme-quill",
              "lodash",
              "angular2-text-mask",
              "sockjs-client",
              "js-brasil"
            ],
            "assets": [
              "src/favicon.ico",
              "src/assets",
              "src/app/main/angular-material-elements"
            ],
            "styles": [
              "./node_modules/@angular/material/prebuilt-themes/pink-bluegrey.css",
              "./node_modules/primeicons/primeicons.css",
              "./node_modules/primeng/resources/themes/saga-blue/theme.css",
              "./node_modules/primeng/resources/primeng.min.css",
              "./node_modules/devextreme/dist/css/dx.common.css",
              "./node_modules/devextreme/dist/css/dx.light.css",
              "./node_modules/datatables.net-dt/css/jquery.dataTables.css",
              "./node_modules/ngx-toastr/toastr.css",
              "src/styles.scss",
              "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.js",
              "node_modules/datatables.net/js/jquery.dataTables.js",
              "node_modules/bootstrap/dist/js/bootstrap.js"
            ],
            "stylePreprocessorOptions": {
              "includePaths": ["node_modules"]
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "namedChunks": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "6mb",
                  "maximumError": "10mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            },
            "development": {
              "buildOptimizer": false,
              "optimization": false,
              "vendorChunk": true,
              "extractLicenses": false,
              "sourceMap": true,
              "namedChunks": true
            },
            "ec": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            },
            "hmr": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ],
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.hmr.ts"
                }
              ]
            },
            "hom": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.hom.ts"
                }
              ],
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "6mb",
                  "maximumError": "10mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ]
            }
          },
          "defaultConfiguration": "development"
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "configurations": {
            "production": {
              "browserTarget": "comprasfood:build:production"
            },
            "hmr": {
              "hmr": true,
              "browserTarget": "comprasfood:build:hmr"
            },
            "ec": {
              "browserTarget": "comprasfood:build:ec"
            },
            "hom": {
              "browserTarget": "comprasfood:build:hom"
            },
            "development": {
              "browserTarget": "comprasfood:build:development"
            }
          },
          "defaultConfiguration": "development"
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "comprasfood:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.scss",
              "./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css"
            ],
            "scripts": []
          }
        },
        "lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "src/**/*.ts",
              "src/**/*.html"
            ]
          }
        },
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "comprasfood:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "comprasfood:serve:production"
            }
          }
        }
      }
    }
  },
  "cli": {
    "analytics": "2188e411-a8aa-4a4c-a194-d4fae869ce45",
    "cache": {
      "enabled": false
    }
  }
}

package.json

{
  "name": "comprasfood",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "ng": "ng",
    "build": "ng build --configuration development --max-old-space-size=14096",
    "start": "ng serve -o --port 4400",
    "build:hom": "ng build --configuration production --c=hom",
    "build:prod": "ng build --configuration production",
    "watch": "ng build --watch --configuration development",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "sonar": "sonar-scanner"
  },
    "dependencies": {
    "@angular-material-components/datetime-picker": "9.0.0",
    "@angular-material-components/file-input": "9.0.0",
    "@angular/animations": "15.1.3",
    "@angular/cdk": "^15.1.3",
    "@angular/common": "15.1.3",
    "@angular/compiler": "15.1.3",
    "@angular/core": "15.1.3",
    "@angular/flex-layout": "^15.0.0-beta.42",
    "@angular/forms": "15.1.3",
    "@angular/material": "15.1.3",
    "@angular/material-moment-adapter": "15.1.3",
    "@angular/platform-browser": "15.1.3",
    "@angular/platform-browser-dynamic": "15.1.3",
    "@angular/router": "15.1.3",
    "@ngrx/effects": "15.2.1",
    "@ngrx/router-store": "15.2.1",
    "@ngrx/store": "15.2.1",
    "@ngrx/store-devtools": "15.2.1",
    "@ngx-translate/core": "^14.0.0",
    "@stomp/stompjs": "^6.1.2",
    "@types/intro.js": "^5.1.0",
    "angular-calendar": "0.31.0",
    "angular-datatables": "15.0.0",
    "angular-in-memory-web-api": "0.15.0",
    "angular2-text-mask": "9.0.0",
    "bootstrap": "5.2.3",
    "classlist.js": "1.1.20150312",
    "d3": "7.8.2",
    "datatables.net": "1.13.2",
    "datatables.net-dt": "1.13.2",
    "date-fns": "2.29.3",
    "devextreme": "22.2.4",
    "devextreme-angular": "22.2.4",
    "igniteui-theming": "^1.3.0",
    "jquery": "3.6.3",
    "jqwidgets-ng": "^15.1.0",
    "js-brasil": "2.5.3",
    "lodash": "4.17.21",
    "moment": "2.29.4",
    "ng2-pdf-viewer": "^6.4.1",
    "ngrx-store-freeze": "0.2.4",
    "ngx-color-picker": "13.0.0",
    "ngx-currency": "^2.5.3",
    "ngx-mat-select-search": "^7.0.0",
    "ngx-perfect-scrollbar": "^10.1.1",
    "ngx-toastr": "^16.0.2",
    "ngx-webstorage": "^11.1.1",
    "perfect-scrollbar": "1.5.0",
    "primeicons": "^6.0.1",
    "primeng": "^15.2.0",
    "prismjs": "^1.29.0",
    "rxjs": "7.8.0",
    "sockjs-client": "^1.6.1",
    "sonar-scanner": "^3.1.0",
    "tslib": "2.5.0",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "15.1.4",
    "@angular-eslint/builder": "^15.2.0",
    "@angular-eslint/eslint-plugin": "^15.2.0",
    "@angular-eslint/eslint-plugin-template": "^15.2.0",
    "@angular-eslint/schematics": "^15.2.0",
    "@angular-eslint/template-parser": "^15.2.0",
    "@angular/cli": "15.1.4",
    "@angular/compiler-cli": "15.1.3",
    "@angular/language-service": "15.1.3",
    "@angularclass/hmr": "^3.0.0",
    "@types/datatables.net": "^1.10.19",
    "@types/jasmine": "3.6.1",
    "@types/jquery": "^3.5.5",
    "@types/lodash": "4.14.165",
    "@types/node": "12.19.4",
    "@types/prismjs": "^1.26.0",
    "@types/sockjs-client": "^1.5.1",
    "@typescript-eslint/eslint-plugin": "5.48.1",
    "@typescript-eslint/parser": "5.48.1",
    "codelyzer": "^6.0.2",
    "eslint": "^8.11.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsdoc": "39.8.0",
    "eslint-plugin-prefer-arrow": "^1.2.3",
    "eslint-plugin-prettier": "^4.0.0",
    "jasmine-core": "3.6.0",
    "jasmine-spec-reporter": "5.0.2",
    "karma": "6.4.1",
    "karma-chrome-launcher": "3.1.0",
    "karma-jasmine": "4.0.1",
    "karma-jasmine-html-reporter": "1.5.4",
    "mini-css-extract-plugin": "^2.7.2",
    "moment-locales-webpack-plugin": "^1.2.0",
    "protractor": "7.0.0",
    "ts-node": "8.3.0",
    "typescript": "4.9.5"
  }
}