question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hidden Stack Traces

See original GitHub issue

It appears that throwing an error from a gulp task will log the error message, and the task in question, but not the stack trace.

Is there any reason not to make logging stack traces the default behaviour? For the sake of minimising surprises I think it would be worth considering. It’s something that I know others have struggled with Grunt in the past as well: stacks are hidden behind a flag (--stack), and a few coworkers went a couple of weeks before discovering it was even an option, leaving some errors a complete mystery.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:24 (22 by maintainers)

github_iconTop GitHub Comments

7reactions
laurelnaiadcommented, Apr 18, 2014

In case anyone stumbles across this and has trouble deciphering how it works, this is what works for me to get stack traces from all errors:

gulp.on('err', function(e) {
  console.log(e.err.stack);
});
0reactions
Taytaycommented, Jun 25, 2014

Thanks for the clarification @contra. Good to know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiding Stack Trace Messages - Jaspersoft Community
By default, JasperReports Server displays stack traces in certain error messages. Stack traces reveal some information about the application, and security ...
Read more >
How to hide the current method from exception stack trace in ...
P.S.: If all you want is to hide a method in the Call Stack window during a debugging session, simply apply the [DebuggerHidden]...
Read more >
Hide / Remove Stack Trace information - Microsoft Q&A
Stack trace is automatically inserted in Exception body to help you trace when caused the exception. If you don't want to show it,...
Read more >
Hiding Sensitive Arguments in PHP Stack Traces - Chris White
Sometimes we need to pass around sensitive and secret variable values in ... Obviously we need to remove the secret value from stack...
Read more >
Crashlytics hidden stack trace · Issue #10902 - GitHub
Symbol files have been uploaded successfully and Crashlytics does not state that any symbol files are missing; We are using bitcode; We have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found