Visual studio code breakpoint set to grey color & not working.error(may be excluded because of "justMyCode" option)
Question:
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.
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.
Answers:
You need to set "justMyCode": true
in your debug configuration as this is third-party code which is excluded by default.
are you using a launch configuration to run the debugger? i had the same issue and resolved by adding "justMyCode": false
inside the launch.json for the proper entry.
Tools –> Options –> Python –> Debugging –> Check : “Enable debugging of the Python standard library”
I was only able to add Breakpoints to 3rd party libraries when I set 2 options:
-
on the launch.json file:
add "justMyCode": false to the configuration.
-
on Settings>Features>Debug
Turn on the option Allow Breakpoints Everywhere
-
(alternative to 2.) on the file settings.json
add "debug.allowBreakpointsEverywhere": true
Tested on: version: 1.63.2
If you work with Typescript, and have tsconfig.json file –> Try setting:
"sourceMap": true
That worked for me
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.
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.
You need to set "justMyCode": true
in your debug configuration as this is third-party code which is excluded by default.
are you using a launch configuration to run the debugger? i had the same issue and resolved by adding "justMyCode": false
inside the launch.json for the proper entry.
Tools –> Options –> Python –> Debugging –> Check : “Enable debugging of the Python standard library”
I was only able to add Breakpoints to 3rd party libraries when I set 2 options:
-
on the launch.json file:
add "justMyCode": false to the configuration. -
on Settings>Features>Debug
Turn on the option Allow Breakpoints Everywhere -
(alternative to 2.) on the file settings.json
add "debug.allowBreakpointsEverywhere": true
Tested on: version: 1.63.2
If you work with Typescript, and have tsconfig.json file –> Try setting:
"sourceMap": true
That worked for me