'Visual studio code breakpoint set to grey color & not working.error(may be excluded because of "justMyCode" option)

I have set breakpoint in Django core library in visual studio code but when I am starting debugging of my project , those debug point color changed from red to grey & show me notification like below.

Breakpoint in file excluded by filters.
Note: may be excluded because of "justMyCode" option (default == true).

I have set justmycode value to false from visual code option but still I am not able to set breakpoint.

Notification_msg

Even I have read SO question related but not able to solve my issue so I have to post my question.
I have tried to set localroot & remoteroot but not working even.



Solution 1:[1]

I was only able to add Breakpoints to 3rd party libraries when I set 2 options:

  1. on the launch.json file: add "justMyCode": false to the configuration.

  2. on Settings>Features>Debug Turn on the option Allow Breakpoints Everywhere

  3. (alternative to 2.) on the file settings.json add "debug.allowBreakpointsEverywhere": true

Tested on: version: 1.63.2

Solution 2:[2]

You need to set "justMyCode": true in your debug configuration as this is third-party code which is excluded by default.

Solution 3:[3]

Source: https://windowsquestions.com/2020/10/04/cant-set-breakpoint-in-imported-module-visual-studio-community-2019-python-project/

Tools –> Options –> Python –> Debugging –> Check : “Enable debugging of the Python standard library”

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CironAkono
Solution 2 Brett Cannon
Solution 3 Greg Mulvihill