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.

make-promises-debuggable

See original GitHub issue

Suggestion for a sequel module: make-promises-debuggable

Might not be possible, but making a process crash when there’s a syntax error in a promise that already has a catch handler would be helpful for development experience

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davidmarkclementscommented, Jun 16, 2017

and no one would notice it was even there, no build process etc. just a regex search and replace on async with a couple other rules. no one will know the difference

0reactions
BridgeARcommented, Mar 18, 2019

With newer Node.js versions this is a bad idea as async / await is going to provide useful stack traces from now on.

And monkey patching promises is likely going to slow down all promises significantly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to debug javascript promises? - Stack Overflow
Basically, enable the "async" checkbox in the sources tab, and Chrome will reconstruct the call stack for you as if it were synchronous...
Read more >
es6-promise-debugging/README.md at master - GitHub
Problem and solution for debugging ES6 Promise-based applications ... ignore many errors that may make it difficult to debug promise-based applications.
Read more >
Debugging Promises with DevTools, Totally Tooling Tips (S1 ...
In this episode, Addy and Matt walk through how to debug ES6 Promises using the brand new Promises debugger in Chrome DevTools.
Read more >
Debug Tips - finding an unresolved promise using console.log
Sometimes as a beginner you might code a while loop or a for loop and accidentally create an infinite loop, or maybe you...
Read more >
Debugging Promises - Ember Inspector
The Inspector provides a way to look at all Promises created in your application. Click on the Promises menu to start inspecting them....
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