aurelia / aurelia/framework

better error logging

Open
#926 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.7k
Forks
608
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a feature request**

* **Library Version:**
aurelia-script 1.3.1

**Current behavior:**
If you make a typo, or on this case I forgot to add `async` to a function, you get a long but useless stacktrace pointing to inside of aurelia but nowhere in the stack trace does it give me any clue of what view, class, file is at fault. I've had this issue for years, ever since Aurelia was still in beta and it's been my biggest problem with aurelia ever since. Because despite having `.developmentLogging()` enabled I'm subjected to tearing my app down and uncommenting it line by line until I find the needle in the haystack

![image](https://user-images.githubusercontent.com/3995401/54070417-1c43a680-4260-11e9-9b0b-1a03a0285ffc.png)

**Expected Behavior:**
Some general information about origin of the error - the file, line, or a class/method

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the missing-async or typo case in aurelia-script 1.3.1 with .developmentLogging() enabled and inspect the resulting stack trace. Done means errors include useful origin information such as the affected view, class, file, line, or method instead of only Aurelia internals.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.