4

I don't know if I am missing something but I can't manage to debug this very simple Node JS program with VS Code (I'm on a Ubuntu env) :

Code

When I start debugging, my breakpoint is "set but not yet bound". The strange thing is that the execution will stop on exceptions if I ask it to, but it will NEVER stop on my breakpoints.

My launch.json file is as follows :

launch.json

Thank you for your answers.

1 Answer 1

2

I found a workaround. There is a bug on breakpoints in VS Code and to get it work :

  1. Write an exception on your code at the beginning
  2. Debug your app. It should stop on the exception
  3. While it is stopped on the exception, set your breakpoints
  4. Remove the exception code
  5. The next time you debug, breakpoints should be hit !
Sign up to request clarification or add additional context in comments.

1 Comment

This worked for me when trying to debug an Alexa skill.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.