Debugging JavaScript -console.loggerheads?
Christian Heilmann
425

I used to debug using console.log() till I recognize the chrome debugger was better and faster to know what is the cause of the bug.

e.g sometimes juniors like me write a console.log(array) only to know that we need the info of another variable so we run the code and go back to the editor write more console.log() and so on

Also I am switching from sublime text to visual studio code, xdebug on sublime text is pretty bad and the IntelliSense is so good

Show your support

Clapping shows how much you appreciated Raigorx’s story.