-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
[Bug] pdb support is broken #1613
Comments
Run This is the output of pdb
In #1239, In #1465, the following change makes exception stacktrace changed before #1239. Let's focus on line 110 of hydra/hydra/_internal/hydra.py Lines 105 to 112 in 3f74e8f
which is calling Lines 226 to 234 in 3f74e8f
Here Hydra raise HydraJobException instead of the original exception even if under a debugger. |
Thanks. #1614 is supposed to fix it. |
🐛 Bug
Description
In patch #1239, debugger can work with hydra by setting
HYDRA_FULL_ERROR=1
, but pr #1465 breaks it. In #1465,HydraJobException
is always raised if the job raise an exception, such that debugger will catchHydraJobException
instead of the original exceptions.Checklist
To reproduce
** Minimal Code/Config snippet to reproduce **
then run
HYDRA_FULL_ERROR=1 python -m pdb -c continue mini.py
in shell.pdb catch
HydraJobException
inhydra/core/utils.py
Expected Behavior
pdb catch
Exception
infoo
.System information
Additional context
I think add
if _is_env_set("HYDRA_FULL_ERROR") or is_under_debugger():
inJobReturn.return_value
can temporarily fix this.The text was updated successfully, but these errors were encountered: