Closed
Description
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:
- Create a virtual environment
- Install pandas, scikit-learn, sqlalchemy, nltk
- Copy file from here
- Download data file and place in the same place as file from point above.
- Place breakpoint on line
cv.fit(X_train, y_train)
. - 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:"
- Launch debugger on the file.