-
Notifications
You must be signed in to change notification settings - Fork 146
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
pydevd_sys_monitoring always throws TypeError #1708
Comments
Me too. |
Very weird. That code is here: debugpy/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx Line 1367 in 39879bd
I don't see how from_offset can not be an integer. Sys.monitoring says it's supposed to be an integer. https://docs.python.org/3/library/sys.monitoring.html#monitoring-event-JUMP |
Does anybody have an example application that reproduces the problem? |
Seems related to this issue: fabioz/PyDev.Debugger#280 |
In my case, I'm making an odoo module, using vscode debugger, put breakpoint, trigger it. After some debugging, this error sometimes shows several seconds I pause, sometimes right after I unpause the debug Version: 1.94.2 Python : 3.12.7 Maybe trying to make odoo module is overkill to reproduce this problem. But I'm trying to help |
Version: 1.94.2 (user setup) Running in Win10/WSL2 with Python 3.12. I encountered the
Here is the traceback.Traceback (most recent call last): File "/usr/local/lib/python3.12/runpy.py", line 198, in _run_module_as_main return _run_code(code, main_globals, None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/runpy.py", line 88, in _run_code Hope this helps. |
@rchiodo Sorry for not replying in time. The example provided by @jdwestwood can reproduce this error stably. |
similar code imgparts = "joxit/docker-registry-ui:latest".split('/')
try:
img,tag = imgparts[-1].split('@')
except ValueError:
try:
img,tag = imgparts[-1].split(':')
except ValueError:
img = imgparts[-1]
# finally:
# print("end")
print(123) # add breakpoint here, but TypeError will not occur if two lines (the finally arm) above uncommented Version: 1.94.2 (user setup) traceback
|
The newest release on PyPi has the fix for this: v1.8.8. It should ship relatively soon in the debugger extension for VS code. |
@rchiodo Any update on this issue? I'm running a project on ROS2 Jazzy with python 3.12 and I experience this issue when reaching breakpoints in vscode. This release (2024.12.0) seems to have improvements in the execution time for the async part, but does not allow to debug using breakpoints on async calls. It is important to note that I don't experience any issue with this release when I don't use break points.
All previous versions don't have this issue, but they have issues with the executing time required to perform complex nested async calls. |
You're using an older release. This was fixed in 1.8.8. That is shipping in one of the prerelease versions of the debugger extension. |
You are totally right! I switched to 2024.13.2024111901, and so far, it seems to have fixed my issue. |
same issue |
What version are you using? For me, switching to the newest release fixed the issue |
Confused me at first, but I was able to resolve by:
|
After python debug was automatically updated to version v2024.12.0, this error was reported during debugging. When I rolled back to the previous version, it worked normally.
Error message
The text was updated successfully, but these errors were encountered: