MindRove / MindRoveSDK

Apache License 2.0
5 stars 4 forks source link

Visual Studio Code breakpoints stop working as soon as anything from mindrove is imported #8

Closed jamesonrader closed 1 year ago

jamesonrader commented 1 year ago

I have a very simple file.

import argparse
import logging

import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore

# from mindrove.board_shim import BoardShim, MindRoveInputParams, BoardIds
# from mindrove.data_filter import DataFilter, FilterTypes, WindowFunctions, DetrendOperations

print("test breakpoint")
print("test breakpoint")
print("test breakpoint")
print("test breakpoint")

I have breakpoints set on the print statements. They work as long as the from mindrove.board_shim and mindrove.data_filter lines are commented out. As soon as I uncomment one of those lines, my breakpoints no longer trigger.

Why is this happening and how can I resolve it? I am using Visual Studio Code on a Mac.

rokaijano commented 1 year ago

Hi, After a quick check, I could not reproduce the error on Win. Soon I will check it on Mac as well. If only the VS breakpoints are the problem, I suggest using the python debugger ( pdb ) as a temporary solution and see if that works.

jamesonrader commented 1 year ago

This only happens when you are using Python 3.11. If you are using 3.10 or 3.9, then it works.