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

Watch variables de-activates debugger (breakpoints and code-stepping fails) with GEVENT #1743

Closed
felmoreno1726 opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels
needs repro Issue has not been reproduced yet Stale waiting for response

Comments

@felmoreno1726
Copy link

Environment data

  • debugpy version: v2024.12.0
  • OS and version: Fedora 40
  • Python version Python 3.12.7
  • Using VS Code or Visual Studio: VS Code

Actual behavior

Whenever a Watch Variable is defined, only the first breakpoint is hit. Subsequent breakpoints are ignored and the code will continue executing without stopping at a subsequent breakpoint. Also stepping-in or stepping-over becomes disabled and the code will just resume execution afterwards.

Expected behavior

The expected behavior is that the debugger is able to control the execution of the program: stepping through lines of code, stepping-in and stopping at subsequent breakpoints. (Even if Watch Variables are defined).

Steps to reproduce:

  1. I'm running a Flask application with Gevent workers and monkey_patch enabled.
  2. The environment variable GEVENT_SUPPORT = True (However annoying warnings are still present)
Please set an environment variable with:
GEVENT_SUPPORT=True
to enable gevent support in the debugger.
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 21, 2024
@rchiodo rchiodo changed the title Watch variables de-activates debugger (breakpoints and code-stepping fails) Watch variables de-activates debugger (breakpoints and code-stepping fails) with GEVENT Nov 21, 2024
@felmoreno1726
Copy link
Author

I go the following out of DEBUG CONSOLE output:

Exception ignored in thread started by: <bound method Thread._bootstrap of <WriterThread(pydevd.Writer, started daemon 140290625427136)>> Traceback (most recent call last): File "/usr/lib64/python3.12/threading.py", line 1032, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1079, in _bootstrap_inner self._delete() File "/usr/lib64/python3.12/threading.py", line 1111, in _delete del _active[get_ident()] ~~~~~~~^^^^^^^^^^^^^ KeyError: 140290516462976

Let me know if you need additional information to reproduce the issue.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 25, 2024

Do you have a sample app that I can use to try this out?

Copy link

This issue was closed because it has been stalled for 30 days with no activity. If the issue still persists, please reopen with the information requested. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet Stale waiting for response
Projects
None yet
Development

No branches or pull requests

2 participants