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

what's the difference between PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT and PYDEVD_WARN_EVALUATION_TIMEOUT? #286

Open
DetachHead opened this issue Jul 16, 2024 · 0 comments

Comments

@DetachHead
Copy link

in vscode, i set PYDEVD_WARN_EVALUATION_TIMEOUT to a higher number to suppress warnings, but today i noticed the following warning, mentioning a different but similarly named variable:

pydevd warning: Getting attribute Row.selected was slow (took 1.05s)
Customize report timeout by setting the `PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT` environment variable to a higher timeout (default is: 0.5s)

looking at where these variables are defined, i don't really understand what the difference is between these two variables. it looks like they both mean the same thing:

# If getting an attribute or computing some value is too slow, let the user know if the given timeout elapses.
PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT = as_float_in_env("PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT", 0.50)
# This timeout is used to track the time to send a message saying that the evaluation
# is taking too long and possible mitigations.
PYDEVD_WARN_EVALUATION_TIMEOUT = as_float_in_env("PYDEVD_WARN_EVALUATION_TIMEOUT", 3.0)

perhaps these comments could be updated to clarify exactly what the difference is between them?

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