If you're having trouble with debugpy, check below for information which may help. If something isn't covered here, please file an issue with the information given in Filing an issue.
There are a few known issues in the current version of the debugger:
If you receive an error saying breakpoint not set, then look at your path mappings in launch.json
. See Meta-Issue #2976 for more details.
If you want to debug library files, you have to disable justMyCode
in launch.json
. Previously this setting was debugStdLib
. For example:
{
"name": "Terminal",
"type": "python",
"request": "launch",
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
When filing an issue, make sure you do the following: