Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
How to print the cause for a thrown Error in Chrome console?

Since July 2021 they have added a new error cause property in Javascript, so we are able to do:

throw new Error('New error message', { cause: err });

In Firefox this err object is shown after the original error. On Chrome only the original error is shown, and I can't store the thrown error into variable to inspect it. How do I see the error cause then? (Without modifying the source code / get into the debugger)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I don’t think there's a way unless you catch the error before it's being thrown with the "Pause debugger on uncaught errors".

We'll have to wait until Chrome natively includes the cause’s stack trace in when displaying the error, just like Firefox and Node do. This is being tracked here:

https://bugs.chromium.org/p/chromium/issues/detail?id=1211260

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!