Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging doesnt work in Python 3.10.2 (breakpoint ignored) #856

Closed
danieltomasz opened this issue Feb 4, 2022 · 1 comment
Closed

Debugging doesnt work in Python 3.10.2 (breakpoint ignored) #856

danieltomasz opened this issue Feb 4, 2022 · 1 comment

Comments

@danieltomasz
Copy link

danieltomasz commented Feb 4, 2022

This is discussed here in the context of vscode-jupyter extension microsoft/vscode-jupyter#8803
it doesn't work in kernel with 3.10.2 when debugging both VSCode and Jupyter Lab (callstack is empty, Jupyter 3.2.9)
When coming back to 3.9.10 everything is ok

I used pyenv virtualenv pyenv install 3.10.2 and makefile to create separate environment

.ONESHELL:

.PHONY: install

PROJECT=debug
VERSION=3.10.2
VENV=${PROJECT}-${VERSION}
VENV_DIR=$(shell pyenv root)/versions/${VENV}
PYTHON=${VENV_DIR}/bin/python

install:
	@echo "Installing $(VENV)"
	pyenv virtualenv ${VERSION} ${VENV}
	pyenv local ${VENV}
	$(PYTHON) -m pip cache purge 
	$(PYTHON) -m pip  install -U pip
	$(PYTHON) -m pip install wheel
	$(PYTHON) -m pip install ipykernel
	$(PYTHON) -m ipykernel install --user --name ${VENV}

Code used for debugging in Jupyter Notebook

# count the number of mouse in list of devices
devices = ['laptop','mouse', 'mouse', 'charger', 'mouse', 'keyboard', 'mouse']
mouse_count = 0

for device in devices:
    if device.upper() == 'MOUSE':
        mouse_count += 1

print(f"mouse count : {mouse_count}")

I check with the latest git main branch and it doesn't work too

I am on MacOS 12.3 (M1)

@danieltomasz
Copy link
Author

danieltomasz commented Feb 7, 2022

This is already described here #841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant