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

Debug with VSCode #89

Open
9a4gl opened this issue Feb 7, 2021 · 0 comments
Open

Debug with VSCode #89

9a4gl opened this issue Feb 7, 2021 · 0 comments

Comments

@9a4gl
Copy link

9a4gl commented Feb 7, 2021

I am adding mqtt client + socketio capability to my flask application, it works fine if I start app from command line, but I try to debug from VSCode I am getting:

Traceback (most recent call last):
  File "d:\GITWORK\tihomir.solar\venv\lib\site-packages\eventlet\hubs\hub.py", line 476, in fire_timers
    timer()
  File "d:\GITWORK\tihomir.solar\venv\lib\site-packages\eventlet\hubs\timer.py", line 59, in __call__
    cb(*args, **kw)
  File "d:\GITWORK\tihomir.solar\venv\lib\site-packages\eventlet\semaphore.py", line 152, in _do_acquire
    waiter.switch()
greenlet.error: cannot switch to a different thread

I have use_reloader=False, and in launch.json I have "--no-reload" in args.

Is it possible to debug code using flask-mqtt ?

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