13

My debugging is setup in VS code, I can hit break points in the file I'm running via the launch.json config, but I can't get breakpoints in packages that are installed with PIP. How do I get breakpoints in these package files?

1
  • If you are going to try altering source code of the packages even if you are just adding a break point I strongly recommend doing it on a virtual environment. Commented Apr 2, 2020 at 16:08

2 Answers 2

18

In addition to File -> Add folder to workspace I had to add this line to launch.json

"justMyCode": false
Sign up to request clarification or add additional context in comments.

Comments

8

If you know where you python installation is on your computer do this:

  1. Know where you python packets were installed.
  2. File -> add folder to workspace
  3. Add the breakpoints where necessary.

As an alternative i would advise to create a virtual environment and do the same thing but with the safety of virtual environment. Hope that helps.

Comments

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.