-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
As requested in #19030 (comment), I’m creating a new feature request.
"justMyCode": false
is a VS Code for Python debugger setting that has to be placed in a launch configuration (see below). It allows people to set breakpoints and step into 3rd party code. I found it plain necessary to debug how any non-trivial code interacts with library code. @brettcannon mentioned in that thread that the default "justMyCode": true
is a deliberate choice based on user feedback. However that doesn’t work for library and plugin developers, who often have to step into other libraries’ code.
Running tests using the test runner uses a built-in/implied launch configuration. In order to set that setting, you need to find the linked-to docs and create an entry in .vscode/launch.json
. The docs for this are good but encountered quite far into a long document and hard to find using a web search. Instead, web searches tend to dredge up long-obsolete launch configurations.
I therefore propose to either switch "justMyCode"
to false
by default, as it supports more use cases, or to add a python.debug.justMyCode
setting that allows easier and more discoverable configuration of this setting than creating a magic run configuration.