I don't see an Angular component in the developer tools for debugging in Chrome

1.5k Views Asked by At

I have this component working fine

enter image description here

But here I don't see it

enter image description here

Is in my app.module too

enter image description here

Any idea, please?

Thanks

2

There are 2 best solutions below

0
Kalana Nanayakkara On BEST ANSWER

Simply you can click the vertical three dots that can see in the screen shot and there may be an option call openfile. From that you can search with your file name.

after clicking three dots:

enter image description here

after click open file:

enter image description here

0
Gone On

try to use sourceMap: true into your angular.json, it allow you to apply ts code to the chrome debugger. Then you ctrl + p to find your file name.

"architect": {
    "build": {
      "builder": "@angular-devkit/build-angular:browser",
      "options": {
        "outputPath": "dist",
        "index": "src/index.html",
        ...
        "sourceMap": true,
        ...
      },
    ...
}