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.

Support for --trace-warnings option?

See original GitHub issue

I would need to run ts-node and print stack trace for unhandled promise exceptions.

How to pass an option --trace-warnings?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
cspotcodecommented, Sep 30, 2020

In 2020 specifically, you’re supposed to do this: https://github.com/TypeStrong/ts-node/issues/465#issuecomment-659375861

If you find yourself in 2019, you might need to do something else.

8reactions
Elyx0commented, Jul 16, 2020
node  --trace-warnings -r ts-node/register -r tsconfig-paths/register ./src/index.ts

For future reference, this worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command-line API | Node.js v19.3.0 Documentation
Node.js comes with a variety of CLI options. These options expose built-in debugging, ... The REPL does not support this option. ... --trace-warnings...
Read more >
How do you run nx serve with node --trace-warnings?
How do I run yarn nx serve in conjunction with --trace-warnings ? I want to get the stack trace so that I can...
Read more >
Using ES modules in Node.js - LogRocket Blog
The module system is supported in many languages and is quite popular since the way dependencies are ... (Use `node --trace-warnings .
Read more >
Command line options
Node.js comes with a variety of CLI options. ... Enable experimental support for custom conditional exports resolution ... --trace-warnings.
Read more >
Options | ts-node
ts-node supports --project and --showConfig similar to the tsc CLI. Environment variables, where available, are in ALL_CAPS. CLI Options​. help​. shell. ts ...
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