-
-
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
Hydra does not work with pdb #1237
Comments
pdb
Thanks for reporting. This works:
Hydra is manipulating the exception to provide a more useful stack trace. Run the above without pdb to see the difference from
Versus:
If there is a way to detect that we are running under pdb this can be fixed by not manipulating the exception in that case. |
Beautiful! Thank you. |
This pr #1465 breaks the patch #1239. In #1465, @dataclass
class JobReturn:
....
@property
def return_value(self) -> Any:
assert self.status != JobStatus.UNKNOWN, "return_value not yet available"
if self.status == JobStatus.COMPLETED:
return self._return_value
else:
if _is_env_set("HYDRA_FULL_ERROR") or is_under_debugger(): # add this
raise self._return_value
raise HydraJobException(
f"Error executing job with overrides: {self.overrides}"
) from self._return_value |
Thanks for reporting. |
Goto #1613 |
🐛 Bug
Description
When running
pdb
as inthe debugger does not allow me to inspect local variables upon exception.
To reproduce
Run:
At the prompt, type
p x
Expected Behavior
pdb
should work as it does when not usinghydra
:System information
The text was updated successfully, but these errors were encountered: