meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

Code preview an highlighting on "Your app is crashing. Here's the latest log:" #359

Open Sebl29 opened 5 years ago

Sebl29 commented 5 years ago

Hi folks, I was rethinking where I lost much time in this week of refactoring, why I could not complete my Story (feature). I was moving much code between classes and even packages and many times I saw the white page with "Your app is crashing. Here's the latest log:". And every time I needed to look at the top most line in the stack trace, many times also in the lines before to see which arguments where passed. As this pages comes from Meteor itself, and my app-code was loaded, I thought it could be nice to get the lines of my code already be linked and even get a preview (5 lines before, 5 lines after, highlighting of the failed line) on hover. I think this could have saved myself a lot of time and minimizing the big gap between my IDE and the code in the browsers developer tools. So, when we have a build error, or in Meteor.startup(), the developers could be guided much faster to the causing lines of the stacktrace. Also this should only be active in dev-mode. Cheers, sebl29