Есть ли способ включить тот же уровень отладки, который Google Chrome предоставляет из коробки для отладки приложений Angular и, в частности, чтобы избежать таких ошибок:
Error: "[object Object]"
Я использую FF 68.0b2 (64-разрядная версия) .Та же ошибка в Chrome читаема человеком:
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......
В настоящее время я использую Angular v7.2.15.
[EDIT]
Пример кода
ngOnInit() {
this.authSub = this.authService.isAuthenticated()
.subscribe((authenticated: boolean) => {...}
this.profileSub = this.userService.getCurrentUserProfile()
.subscribe((me) => {...}
}
ngOnDestroy() {
this.authSub.unsubscribe();
this.profileSub.unsubscribe();
}
Ссылка: http://codedam.com/angular-error-error-object-object/