Hi everyone !
What is the proper way to use a debugger with Prefect Orion?
For example, is there any debug setting so that Prefect Orion doesn't capture the exceptions within tasks?
I couldn't find anything about this in the documentation.
Thanks in advance!
I think the error is seen but not in the logs? Will ask the team about it
Kevin Kho
05/26/2022, 3:20 PM
You should be able to use any debugger locally and the error is captured by the logs
z
Zanie
05/26/2022, 3:53 PM
Ah this is a great question, we don’t have a mechanism to disable handling of the exception but we can look into adding one.
Zanie
05/26/2022, 3:54 PM
If you do
.result()
at the end we will reraise the original exception and a debugger will find that frame with the 0/0 error
t
Thomas Henn
05/27/2022, 1:18 AM
Thank you for answering my question!
I will try the .result() method.
Some mechanism to not handle the exceptions would make debugging easier I think.
There would be no need to pinpoint the part of the code to change and restart everything a second time.