SokathHisEyesOpen
link
fedilink
English
181Y

Sourcemaps. Use sourcemaps.

Can you give us an eli5 on sourcemaps?

Usually when code is minified, it is shipped alongside a sourcemap (*.js.map), which can be used by the browser to show you the original code.

If you get an error in the browser, you can click the error, which will take you to the network(?) tab and show you exactly where the error occurred

SokathHisEyesOpen
link
fedilink
English
51Y

Also when code has been compiled, or transpiled. The reason the line numbers don’t match is because all of the code is being assembled into one large package and served to whatever client uses it. So even if you don’t minify, but you’re compiling, sourcemaps will show you where the error actually occurs, instead of where it occurs in the finished product.

Natanael
link
fedilink
11Y

Especially if the compiler optimization options inlined code from 5 different places into one blob

Midnight Wolf
link
fedilink
English
601Y

Is de_dust okay or?

I prefer hostage maps.

The hostage has been planted.

Fuze has entered the chat

Did they add him with cs2?

No that’s coming in CS2: Siege

FUSE has entered the chat.

SokathHisEyesOpen
link
fedilink
English
21Y

HUMILIATION

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 38 users / day
  • 138 users / week
  • 529 users / month
  • 2.24K users / 6 months
  • 1 subscriber
  • 1.68K Posts
  • 37.1K Comments
  • Modlog