1

What if interviewer ask me how I debug js (Nodejs ) code?

Comments
  • 0
    Add debug statements where you wish to add your breakpoints, or some IDEs let you do that when clicking on the line number.
    Now, to debug, in vs code is F5 and then select nodejs
  • 2
    The interviewer then may tell you off for using the wrong tag as I know that's popular here at devrant :)
  • 0
    Then you run away crying
  • 2
    Console log?
  • 1
    You don't, silly, that's how bugs get into production for later
  • 1
    "i use the technique of psychic debugging as popularized by Raymond Chen since it's the only reasonable option, which you would kniw if you would know anything about anything."
  • 0
    The easiest debug for nodejs is to rewrite the application.
  • 0
    console.log amirite? XD
  • 0
    Console.log is not the best option when we are working on a complex logic/flow
  • 0
    Just use a debugger lol
    What kind of question is this?
  • 3
    @snowrivermelody it is, you just have to add more console.log.
  • 0
    If you think they might ask then why don’t you learn how to do it so you can tell them?
Add Comment