Is there any way to enable the same level of debugging that Google Chrome gives out of the box for debugging Angular applications and in particular to avoid errors like that:
Error: "[object Object]"
I'm using FF 68.0b2 (64-bit - dev edition). The same error in Chrome is human readable:
core.js:15724
ERROR Error: Uncaught (in promise): TypeError:
Cannot read property 'unsubscribe' of undefined
TypeError: Cannot read property 'unsubscribe' of undefined
at ProfileComponent.push......
I'm currently using Angular v7.2.15.
[EDIT]
Code Example
ngOnInit() {
this.authSub = this.authService.isAuthenticated()
.subscribe((authenticated: boolean) => {...}
this.profileSub = this.userService.getCurrentUserProfile()
.subscribe((me) => {...}
}
ngOnDestroy() {
this.authSub.unsubscribe();
this.profileSub.unsubscribe();
}
Reference: http://codedam.com/angular-error-error-object-object/