paint-brush
Debugging Angular Application in Production modeby@baherWael
5,216 reads
5,216 reads

Debugging Angular Application in Production mode

by Baher Wael1mSeptember 15th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Some bugs appear in a production environment only with no obvious way to reproduce them in development no matter how hard you try. To solve these kinds of issues we have to debug the output of our production code. The --watch flag, watches our code for changes then runs build process every time our code changes. The --source-map is used to map our minified code back to its original state so we can debug and read that code. We can add/remove breakpoints apply changes to our code and rebuild just like we normally do in day-to-day development activity.
featured image - Debugging Angular Application in Production mode
Baher Wael HackerNoon profile picture
Baher Wael

Baher Wael

@baherWael

0-item

STORY’S CREDIBILITY

Original Reporting

Original Reporting

This story contains new, firsthand information uncovered by the writer.

L O A D I N G
. . . comments & more!

About Author

Baher Wael HackerNoon profile picture
Baher Wael@baherWael

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite