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

141
Views
Chrome dev tool show file name and line number instead of main.js

when I console log something,

I was pretty sure I got file name and line number before.

but now I can only see main.js and a number like this:

enter image description here

Does anyone know how to change it back? Thanks.

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

0

I geuss you are looking for sourcemaps: https://developer.chrome.com/docs/devtools/javascript/source-maps/ .

about 4 years ago · Juan Pablo Isaza Report

0

If you wish to see a stacktrace with your logs, use console.error() or console.warn() instead of console.log().

If you don't like the red or yellow color, you can use console.log(new Error().stack) instead.

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!