Appendix A
Debugging Angular
"A problem well-stated is half-solved." Charles Kettering, the head of research for GM in the early 20th century, said that to effectively find a solution to your problem, you must first be able to explain it well. In other terms, you must first invest the time to understand what the problem is and when you do you will be halfway to solving it.
Effective debugging is crucial in understanding why or how your software is failing. There are far better ways to debug you JavaScript code than using console.log
. This appendix will cover various tools and techniques to introduce you to breakpoint debugging and browser extensions that can help you better understand the state of your application.
In this appendix, we cover:
- The most useful shortcut
- Troubleshooting errors in the browser
- Karma, Jasmine, and unit testing errors
- Debugging with dev tools
- Debugging with VS Code
- Debugging with Angular...