Skip to content

justMyCode: false yields error "This configuration can only be used as defined by purpose." #17356

Closed
@CristianCapsuna

Description

@CristianCapsuna

Environment data

  • VS Code version: 1.60
  • Extension version (available under the Extensions sidebar): Python v2021.9.1191016588, Jupyter v2021.8.2041215044, Jupyter Keymap v1.0.0, Remote WSL v0.58.2
  • OS and version: Windows 10, 10.0.19042
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: scikit-learn 0.24.2
  • Value of the python.languageServer setting: where can I find this?

Expected behaviour

The debugger starts and is able to step out of open file and follow the code to whatever module it goes to.

Actual behaviour

Debugging does not start and I get the message/error: "This configuration can only be used as defined by purpose."

Steps to reproduce:

  1. Create a virtual environment
  2. Install pandas, scikit-learn, sqlalchemy, nltk
  3. Copy file from here
  4. Download data file and place in the same place as file from point above.
  5. Place breakpoint on line cv.fit(X_train, y_train).
  6. Add launch.json file as detailed here. To find the configuration search for "For example, the configuration below in the launch.json file disables the justMyCode setting for debugging tests:"
  7. Launch debugger on the file.

Metadata

Metadata

Assignees

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions