pytest-dev / pytest-timeout

MIT License
213 stars 64 forks source link

is_debugging does not work in VS Code #146

Closed adigie closed 1 year ago

adigie commented 1 year ago

is_debugging stopped working after some update of Python extension. Last known working version is 2022.18.2 (2022.20.x does not load).

2022.18.2:

trace_func=<_pydevd_bundle.pydevd_trace_dispatch_regular.ThreadTracer object at 0x7f9ade3931c0>
inspect.getmodule(trace_func)=<module '_pydevd_bundle.pydevd_trace_dispatch_regular' from '/home/adi/.vscode-server/extensions/ms-python.python-2022.18.2/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py'>

2023.2.0+:

trace_func=<_pydevd_bundle.pydevd_cython.SafeCallWrapper object at 0x7f17e6906bc0>
inspect.getmodule(trace_func)=None

Versions:

flub commented 1 year ago

any chance you could figure out a PR to fix the heuristic for this?