25
piks
8y

When you don't know what's happening in your js so you put console.log at every third line and in every function...

Comments
  • 7
    Before there is console.log, it was alert... 😆
  • 1
    Use the debugger in the dev tools. It will save a lot of time.
  • 1
    @rayanon Just waned to mention that, learning how to use breakpoints can really help with debugging.
  • 0
    @rayanon except when your files pass by a multiple transpilation/bundling/formatting process.
  • 0
    I think JS has very good tools for debugging. Have you tried debugging PHP?
  • 0
    @drecdroid Nope! Most of those transpilation/bundling tools support source maps and what not. Which means you can still use the debugger as it is.

    Debugger is a very important tool in development. If a transpilation/bundling tool takes the debugger away from you, the tool is not worth using.
Add Comment